Struct ScreenPointF
This structure represents a single point in screen coordinates.
public struct ScreenPointF
- Inherited Members
Remarks
None
Constructors
ScreenPointF(float, float)
This constructor allows you to create a screen point by passing in an X & Y.
public ScreenPointF(float x, float y)
Parameters
x
floatThis parameter represents the horizontal value of a screen point.
y
floatThis parameter represents the vertical value of a screen point.
Remarks
None
Properties
X
This property returns the X, or horizontal, value of the screen point.
public float X { get; }
Property Value
- float
This property returns the X, or horizontal, value of the screen point.
Examples
None
Y
This property returns the Y, or vertical, value of the screen point.
public float Y { get; }
Property Value
- float
This property returns the Y, or vertical, value of the screen point.
Remarks
None
Methods
Equals(object)
This method is an override of the Equals functionality.
public override bool Equals(object obj)
Parameters
obj
objectThis parameter is the object you want to check to see if it is equal to the current instance.
Returns
- bool
This method returns the Equals functionality.
Remarks
None
Exceptions
- ArgumentNullException
If you pass a null as the obj, we will throw an ArgumentNullException.
GetHashCode()
This method is an override of the GetHashCode functionality.
public override int GetHashCode()
Returns
- int
This method returns the hash code.
Remarks
None
ToString()
public override string ToString()
Returns
Operators
operator ==(ScreenPointF, ScreenPointF)
This method is an override of the == functionality.
public static bool operator ==(ScreenPointF screenPointF1, ScreenPointF screenPointF2)
Parameters
screenPointF1
ScreenPointFThis parameter is the first screenPoint to compare with.
screenPointF2
ScreenPointFThis parameter is the second screenPoint to compare width.
Returns
- bool
None
Remarks
None
Exceptions
- ArgumentNullException
If you pass a null as the sourceScreenPoint, we will throw an ArgumentNullException.
- ArgumentNullException
If you pass a null as the targetScreenPoint, we will throw an ArgumentNullException.
operator !=(ScreenPointF, ScreenPointF)
This method is an override of the != functionality.
public static bool operator !=(ScreenPointF screenPointF1, ScreenPointF screenPointF2)
Parameters
screenPointF1
ScreenPointFThis parameter represents the first GeoColor to compare.
screenPointF2
ScreenPointFThis parameter represents the second GeoColor to compare.
Returns
Remarks
None
Exceptions
- ArgumentNullException
If you pass a null as the sourceScreenPoint, we will throw an ArgumentNullException.
- ArgumentNullException
If you pass a null as the targetScreenPoint, we will throw an ArgumentNullException.