Raytrix Light Field SDK  v3.1
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Rx::Net::Vector4D Struct Reference

Detailed Description

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...
 

Constructor & Destructor Documentation

Rx::Net::Vector4D::Vector4D ( double  X,
double  Y,
double  Z,
double  W 
)
inline

Constructor.

Parameters
XThe x coordinate.
YThe y coordinate.
ZThe z coordinate.
WThe w coordinate.

Member Function Documentation

static double Rx::Net::Vector4D::Distance ( Vector4D  vA,
Vector4D  vB 
)
inlinestatic

Calculates the distance between the two given vectors.

Parameters
vAThe first vector.
vBThe second vector.
Returns
The distance.
static double Rx::Net::Vector4D::Length ( Vector4D  vA)
inlinestatic

Calculates the length of the given vector.

Parameters
vAThe vector.
Returns
The length.
static Vector4D Rx::Net::Vector4D::operator+ ( Vector4D  vA,
Vector4D  vB 
)
inlinestatic

Addition operator.

Parameters
vAThe first value.
vBA value to add to it.
Returns
The result of the operation.
static Vector4D Rx::Net::Vector4D::operator- ( Vector4D  vA,
Vector4D  vB 
)
inlinestatic

Subtraction operator.

Parameters
vAThe first value.
vBA value to subtract from it.
Returns
The result of the operation.
void Rx::Net::Vector4D::Set ( double  X,
double  Y,
double  Z,
double  W 
)
inline

Sets the coordinates of the vector.

Parameters
XThe x coordinate.
YThe y coordinate.
ZThe z coordinate.
WThe w coordinate.
virtual System::String ^ Rx::Net::Vector4D::ToString ( )
inlineoverridevirtual

Convert this object into a string representation.

Returns
This object as a string.

Member Data Documentation

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.