Raytrix Light Field SDK  4.0
Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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...
 
 Vector4D (System::Drawing::Color xColor)
 Constructor. Creates a Vector4D from the given color. 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 Vector4D FromColor (System::Drawing::Color xColor)
 Creates a Vector4D from the given color. More...
 
static double Length (Vector4D vA)
 Calculates the length of the given vector. More...
 
static operator Vector4D (System::Drawing::Color xColor)
 Vector4D casting operator. More...
 
static Vector4D operator+ (Vector4D vA, Vector4D vB)
 Addition operator. More...
 
static Vector4D operator- (Vector4D vA, Vector4D vB)
 Subtraction operator. More...
 
static bool operator== (Vector4D vA, Vector4D vB)
 Equality 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.
Rx::Net::Vector4D::Vector4D ( System::Drawing::Color  xColor)
inline

Constructor. Creates a Vector4D from the given color.

Parameters
xColorThe color.

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 Vector4D Rx::Net::Vector4D::FromColor ( System::Drawing::Color  xColor)
inlinestatic

Creates a Vector4D from the given color.

Parameters
xColorThe color.
Returns
The 4D vector.
static double Rx::Net::Vector4D::Length ( Vector4D  vA)
inlinestatic

Calculates the length of the given vector.

Parameters
vAThe vector.
Returns
The length.
static Rx::Net::Vector4D::operator Vector4D ( System::Drawing::Color  xColor)
inlinestatic

Vector4D casting operator.

Parameters
xColorThe color.
Returns
The result of the operation.
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.
static bool Rx::Net::Vector4D::operator== ( Vector4D  vA,
Vector4D  vB 
)
inlinestatic

Equality operator.

Parameters
vAThe first Value to compare.
vBThe second Value to compare.
Returns
True all components of the vector are equal.
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.