![]() |
VR-Link API Documentation for HLA Evolved
|
Inheritance diagram for DtVector32:
Collaboration diagram for DtVector32:Public Member Functions | |
| DtVector32 () | |
| DtVector32 (const float &x, const float &y, const float &z) | |
| Construct from three doubles. | |
| ~DtVector32 () | |
| destructor | |
| DtVector32 (const DtVector32 &vec) | |
| copy constructor | |
| DtVector32 (const DtVectorT< float > &vec) | |
| DtVector32 & | operator= (const DtVector32 &vec) |
| assignment operator | |
| DtVector32 & | operator= (const DtVectorT< float > &vec) |
| assignment operator | |
| DtVector32 | crossProduct (const DtVector32 &v) const |
| Compute cross product with another vector. | |
| DtVector32 & | operator+= (const DtVector32 &other) |
| adds other to this vector | |
| DtVector32 & | operator-= (const DtVector32 &other) |
| subtracts other from this vector (this - other) | |
| float | dotProduct (const DtVector32 &v) const |
| Compute dot product with another vector. | |
| bool | approxEq (const DtVector32 &v, const double &tolerance) const |
| check if the vector is zero-ed out withing the tolerance passed | |
Public Member Functions inherited from DtVectorT< float > | |
| DtVectorT () | |
| DtVectorT (const float &x, const float &y, const float &z) | |
| Construct from three doubles. | |
| DtVectorT (const DtVectorT< float > &vec) | |
| copy constructor | |
| ~DtVectorT () | |
| destructor | |
| void | setToZero () |
| set Vector to all zeros | |
| float & | operator[] (int ind) |
| Get the value for the specified subscript. (int version) | |
| float | operator[] (int ind) const |
| A const version to get the value for the specified subscript. | |
| float & | operator[] (DtVectorOffset ind) |
| Get the value for the specified subscript. (enum version) | |
| float | operator[] (DtVectorOffset ind) const |
| a const version to get the value for the specified subscript. (enum version) | |
| int | operator== (const DtVectorT< float > &vec) const |
| Get whether another vector equals this vector. | |
| int | operator!= (const DtVectorT< float > &vec) const |
| Get whether another vector does not equal this vector. | |
| DtString | string () const |
| Get a string representation of the vector. | |
| double | magnitudeSquared () const |
| Get the magnitude of the vector squared, i.e. | |
| void | normalize () |
| Normalize the vector; i.e., magnitude = 1. | |
| bool | isNormalized () const |
| Returns true of the vector is Normalized. | |
| bool | magnitudeIsZero () const |
| check if the magnitude of this vector is zero | |
| bool | magnitudeIsZero (double tolerance) const |
| check if the magnitude of this vector is zero, within the tolerance passed. | |
| std::ostream & | printDataToStream (std::ostream &str) const |
| prints out a formated string to the stream | |
| const float & | x () const |
| gets/sets the x component of a Vector | |
| void | setX (const float &x) |
| gets/sets the x component of a Vector | |
| const float & | y () const |
| gets/sets the y component of a Vector | |
| void | setY (const float &y) |
| gets/sets the y component of a Vector | |
| const float & | z () const |
| gets/sets the z component of a Vector | |
| void | setZ (const float &z) |
| gets/sets the z component of a Vector | |
| operator float * () | |
| operator const float * () const | |
Static Public Member Functions | |
| static const DtVector32 & | zero () |
| Get a zeroed vector. | |
| static const DtVector32 & | i () |
| Get a (1,0,0) vector. | |
| static const DtVector32 & | j () |
| Get a (0,1,0) vector. | |
| static const DtVector32 & | k () |
| Get a (0,0,1) vector. | |
| static const DtVector32 & | ones () |
| Get a vector set to all ones. | |
Additional Inherited Members | |
Protected Attributes inherited from DtVectorT< float > | |
| float | myRep [3] |
|
inline |
Construct from three doubles.
|
inline |
destructor
|
inline |
copy constructor
| bool DtVector32::approxEq | ( | const DtVector32 & | v, |
| const double & | tolerance | ||
| ) | const |
check if the vector is zero-ed out withing the tolerance passed
|
inline |
Compute cross product with another vector.
| float DtVector32::dotProduct | ( | const DtVector32 & | v | ) | const |
Compute dot product with another vector.
|
static |
Get a (1,0,0) vector.
|
static |
Get a (0,1,0) vector.
|
static |
Get a (0,0,1) vector.
|
static |
Get a vector set to all ones.
| DtVector32& DtVector32::operator+= | ( | const DtVector32 & | other | ) |
adds other to this vector
| DtVector32& DtVector32::operator-= | ( | const DtVector32 & | other | ) |
subtracts other from this vector (this - other)
|
inline |
assignment operator
|
inline |
assignment operator
Reimplemented from DtVectorT< float >.
|
static |
Get a zeroed vector.