Name | Description | |
---|---|---|
Coordinate2D Constructor | Overloaded. |
The following tables list the members exposed by Coordinate2D.
Name | Description | |
---|---|---|
Coordinate2D Constructor | Overloaded. |
Name | Description | |
---|---|---|
IsEmpty | Indicates if the Coordinate2D is empty. | |
Magnitude | Gets or sets the length of the Coordinate2D as a vector. | |
X | Gets or sets the X-component. | |
Y | Gets or sets the Y-component. |
Name | Description | |
---|---|---|
ConstructEmpty | Construct an empty Coordinate2D | |
Distance | Gets the 2D distance between two instances of Coordinate2D. | |
DotProduct | Calculates the dot product of this Coordinate2D and another Coordinate2D. Vector dot product is used. | |
Equals | Overloaded. | |
GetHashCode | Obtains a hash code of the object. Used in Equals. | |
GetPerpendicular | Constructs a Coordinate2D that is perpendicular to this vector. | |
GetUnitVector | Constructs a Coordinate2D with Magnitude = 1 from this vector; | |
Midpoint | Constructs the midpoint of the segment connecting two instances of Coordinate2D. | |
Move | Moves the Coordinate2D by adding a shift value to each component. | |
Normalize | Normalizes the Coordinate2D which means it is scaled to magnitude = 1. | |
QueryComponents | Gets the components of the Coordinate2D. | |
Rotate | Overloaded. | |
Scale | Scales the Coordinate2D by the given factor. | |
SetComponents | Sets the components of the Coordinate2D. | |
SetEmpty | Sets the Coordinate2D to empty. | |
ToMapPoint | Convert the Coordinate2D into a MapPoint. |
Addition | Constructs a new Coordinate2D by adding two Coordinate2D objects. Vector addition is used. |
Division | Constructs a new Coordinate2D by performing scalar division on a Coordinate2D. |
Equality | Determines whether the components of the two Coordinate2D objects are equal. |
Explicit Type Conversion | Allow explicit casting of a MapPoint to a Coordinate2D. |
Inequality | Determines whether the components of the two Coordinate2D objects are not equal. |
Multiplication | Overloaded. |
Subtraction | Constructs a new Coordinate2D by subtracting two Coordinate2D objects. Vector subtraction is used. |