Table of Contents

Struct ScreenPointD

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

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 double

This parameter represents the horizontal value of a screen point.

y double

This 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 object

This 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

string

Operators

operator ==(ScreenPointD, ScreenPointD)

This method is an override of the == functionality.

public static bool operator ==(ScreenPointD p1, ScreenPointD p2)

Parameters

p1 ScreenPointD

This parameter is the first screenPoint to compare with.

p2 ScreenPointD

This 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 ScreenPointD

This parameter represents the first GeoColor to compare.

p2 ScreenPointD

This parameter represents the second GeoColor to compare.

Returns

bool

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.