Struct ScreenPointD
This structure represents a single point in screen coordinates.
public readonly struct ScreenPointD
- Inherited Members
Remarks
None
Constructors
ScreenPointD(double, double)
This constructor allows you to create a screen point by passing in an X & Y.
public ScreenPointD(double x, double y)
Parameters
x
doubleThis parameter represents the horizontal value of a screen point.
y
doubleThis 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 double X { get; }
Property Value
- double
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 double Y { get; }
Property Value
- double
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 ==(ScreenPointD, ScreenPointD)
This method is an override of the == functionality.
public static bool operator ==(ScreenPointD p1, ScreenPointD p2)
Parameters
p1
ScreenPointDThis parameter is the first screenPoint to compare with.
p2
ScreenPointDThis 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 !=(ScreenPointD, ScreenPointD)
This method is an override of the != functionality.
public static bool operator !=(ScreenPointD p1, ScreenPointD p2)
Parameters
p1
ScreenPointDThis parameter represents the first GeoColor to compare.
p2
ScreenPointDThis 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.