A 2-dimensional vector.
Public Member Functions | |
Vector2D (double X, double Y) | |
Constructor. More... | |
void | Set (double X, double Y) |
Sets the coordinates of the vector. More... | |
virtual System::String^ | ToString () override |
Convert this object into a string representation. More... | |
Static Public Member Functions | |
static double | Distance (Vector2D vA, Vector2D vB) |
Calculates the distance between the two given vectors. More... | |
static double | Length (Vector2D vA) |
Calculates the length of the given vector. More... | |
static Vector2D | operator* (Vector2D vA, double dScalar) |
Multiplication operator. More... | |
static Vector2D | operator* (double dScalar, Vector2D vA) |
Multiplication operator. More... | |
static Vector2D | operator+ (Vector2D vA, Vector2D vB) |
Addition operator. More... | |
static Vector2D | operator- (Vector2D vA, Vector2D vB) |
Subtraction operator. More... | |
static Vector2D | operator/ (Vector2D vA, double dScalar) |
Division operator. More... | |
static bool | operator== (Vector2D vA, Vector2D vB) |
Equality operator. More... | |
Public Attributes | |
double | X |
The X coordinate. More... | |
double | Y |
The Y coordinate. More... | |
|
inline |
Constructor.
X | The X coordinate. |
Y | The Y coordinate. |
Calculates the distance between the two given vectors.
vA | The first vector. |
vB | The second vector. |
|
inlinestatic |
Calculates the length of the given vector.
vA | The vector. |
Multiplication operator.
vA | The first value to multiply. |
dScalar | The second value to multiply. |
Multiplication operator.
dScalar | The first value to multiply. |
vA | The second value to multiply. |
Addition operator.
vA | The first value. |
vB | A value to add to it. |
Subtraction operator.
vA | The first value. |
vB | A value to subtract from it. |
Division operator.
vA | The numerator. |
dScalar | The denominator. |
Equality operator.
vA | The first Value to compare. |
vB | The second Value to compare. |
|
inline |
Sets the coordinates of the vector.
X | The X coordinate. |
Y | The Y coordinate. |
|
inlineoverridevirtual |
Convert this object into a string representation.
double Rx::Net::Vector2D::X |
The X coordinate.
double Rx::Net::Vector2D::Y |
The Y coordinate.