Raytrix Light Field SDK  4.0
Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Rx::Net::Vector3D Struct Reference

Detailed Description

A 3-dimensional vector.

Public Member Functions

 Vector3D (double X, double Y, double Z)
 Constructor. More...
 
void Set (double X, double Y, double Z)
 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 (Vector3D vA, Vector3D vB)
 Calculates the distance between the two given vectors. More...
 
static double Length (Vector3D vA)
 Calculates the length of the given vector. More...
 
static Vector3D operator* (Vector3D vA, double dScalar)
 Multiplication operator. More...
 
static Vector3D operator* (double dScalar, Vector3D vA)
 Multiplication operator. More...
 
static Vector3D operator+ (Vector3D vA, Vector3D vB)
 Addition operator. More...
 
static Vector3D operator- (Vector3D vA, Vector3D vB)
 Subtraction operator. More...
 
static Vector3D operator/ (Vector3D vA, double dScalar)
 Division operator. More...
 
static bool operator== (Vector3D vA, Vector3D vB)
 Equality operator. More...
 

Public Attributes

double X
 The X coordinate. More...
 
double Y
 The Y coordinate. More...
 
double Z
 The Z coordinate. More...
 

Constructor & Destructor Documentation

Rx::Net::Vector3D::Vector3D ( double  X,
double  Y,
double  Z 
)
inline

Constructor.

Parameters
XThe X coordinate.
YThe Y coordinate.
ZThe Z coordinate.

Member Function Documentation

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

Calculates the distance between the two given vectors.

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

Calculates the length of the given vector.

Parameters
vAThe vector.
Returns
The length.
static Vector3D Rx::Net::Vector3D::operator* ( Vector3D  vA,
double  dScalar 
)
inlinestatic

Multiplication operator.

Parameters
vAThe first value to multiply.
dScalarThe second value to multiply.
Returns
The result of the operation.
static Vector3D Rx::Net::Vector3D::operator* ( double  dScalar,
Vector3D  vA 
)
inlinestatic

Multiplication operator.

Parameters
dScalarThe first value to multiply.
vAThe second value to multiply.
Returns
The result of the operation.
static Vector3D Rx::Net::Vector3D::operator+ ( Vector3D  vA,
Vector3D  vB 
)
inlinestatic

Addition operator.

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

Subtraction operator.

Parameters
vAThe first value.
vBA value to subtract from it.
Returns
The result of the operation.
static Vector3D Rx::Net::Vector3D::operator/ ( Vector3D  vA,
double  dScalar 
)
inlinestatic

Division operator.

Parameters
vAThe numerator.
dScalarThe denominator.
Returns
The result of the operation.
static bool Rx::Net::Vector3D::operator== ( Vector3D  vA,
Vector3D  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::Vector3D::Set ( double  X,
double  Y,
double  Z 
)
inline

Sets the coordinates of the vector.

Parameters
XThe X coordinate.
YThe Y coordinate.
ZThe Z coordinate.
virtual System::String ^ Rx::Net::Vector3D::ToString ( )
inlineoverridevirtual

Convert this object into a string representation.

Returns
This object as a string.

Member Data Documentation

double Rx::Net::Vector3D::X

The X coordinate.

double Rx::Net::Vector3D::Y

The Y coordinate.

double Rx::Net::Vector3D::Z

The Z coordinate.