A 4-dimensional vector.
Public Member Functions | |
Vector4D (double X, double Y, double Z, double W) | |
Constructor. More... | |
void | Set (double X, double Y, double Z, double W) |
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 (Vector4D vA, Vector4D vB) |
Calculates the distance between the two given vectors. More... | |
static double | Length (Vector4D vA) |
Calculates the length of the given vector. More... | |
static Vector4D | operator+ (Vector4D vA, Vector4D vB) |
Addition operator. More... | |
static Vector4D | operator- (Vector4D vA, Vector4D vB) |
Subtraction operator. More... | |
Public Attributes | |
double | W |
The W coordinate. More... | |
double | X |
The X coordinate. More... | |
double | Y |
The Y coordinate. More... | |
double | Z |
The Z coordinate. More... | |
|
inline |
Constructor.
X | The x coordinate. |
Y | The y coordinate. |
Z | The z coordinate. |
W | The w 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. |
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. |
|
inline |
Sets the coordinates of the vector.
X | The x coordinate. |
Y | The y coordinate. |
Z | The z coordinate. |
W | The w coordinate. |
|
inlineoverridevirtual |
Convert this object into a string representation.
double Rx::Net::Vector4D::W |
The W coordinate.
double Rx::Net::Vector4D::X |
The X coordinate.
double Rx::Net::Vector4D::Y |
The Y coordinate.
double Rx::Net::Vector4D::Z |
The Z coordinate.