![]() |
VR-Forces Developer's Guide
|
2 dimensional vector

Public Member Functions | |
| DtVector3 () | |
| DtVector3 (T _x, T _y, T _z) | |
| template<class T1 > | |
| DtVector3 (const T1 &v) | |
| ~DtVector3 () | |
| const void * | ptr (void) const |
| const T * | typePtr (void) const |
| DtVector3 | operator- (void) const |
| bool | operator== (const DtVector3 &rhs) const |
| bool | operator!= (const DtVector3 &rhs) const |
| bool | isEqual (const DtVector3 &rhs, T tolerance=std::numeric_limits< T >::min()) const |
| DtVector3 | operator+ (const DtVector3 &rhs) const |
| DtVector3 | operator- (const DtVector3 &rhs) const |
| DtVector3 & | operator+= (const DtVector3 &rhs) |
| DtVector3 & | operator-= (const DtVector3 &rhs) |
| DtVector3 | operator+ (T fScalar) const |
| DtVector3 | operator- (T fScalar) const |
| DtVector3 | operator* (T fScalar) const |
| DtVector3 | operator/ (T fScalar) const |
| DtVector3 & | operator+= (T fScalar) |
| DtVector3 & | operator-= (T fScalar) |
| DtVector3 & | operator*= (T fScalar) |
| DtVector3 & | operator/= (T fScalar) |
| bool | operator> (const DtVector3 &rhs) const |
| bool | operator< (const DtVector3 &rhs) const |
| void | normalize (void) |
| T | length (void) const |
| T | squaredLength (void) const |
| T | getDistance (const DtVector3 &rhs) const |
| DtVector3 | crossProduct (const DtVector3 &rhs) const |
| T | dotProduct (const DtVector3 &rhs) const |
| T | absDotProduct (const DtVector3 &rhs) const |
| DtVector3 | midPoint (const DtVector3 &rhs) const |
| void | makeCeil (const DtVector3 &rhs) |
| void | makeFloor (const DtVector3 &rhs) |
| T | operator[] (size_t index) const |
| T & | operator[] (size_t index) |
| void | set (T x, T y, T z) |
Static Public Member Functions | |
| static size_t | sizeInBytes (void) |
Public Attributes | |
| T | x |
| T | y |
| T | z |
Static Public Attributes | |
| static const DtVector3 | theZeroVector = DtVector3<T>(0, 0, 0) |
| static const DtVector3 | theUnitScale = DtVector3<T>(1, 1, 1) |
| static const DtVector3 | X_AXIS = DtVector3<T>(1, 0, 0) |
| static const DtVector3 | Y_AXIS = DtVector3<T>(0, 1, 0) |
| static const DtVector3 | Z_AXIS = DtVector3<T>(0, 0, 1) |
| static DtVector3 | POSITIVE_INFINITY |
|
inline |
CTOR.
Referenced by makVrv::DtVector3< float64 >::operator-().
|
inline |
CTOR.
CTOR construct from type with constructable components.
|
inline |
DTOR.
|
inline |
|
inline |
access the pointer to the data, with the type of the data
|
inline |
Negate the vector.
| bool makVrv::DtVector3< T >::operator== | ( | const DtVector3< T > & | rhs | ) | const |
equality
| bool makVrv::DtVector3< T >::operator!= | ( | const DtVector3< T > & | rhs | ) | const |
inequality
| bool makVrv::DtVector3< T >::isEqual | ( | const DtVector3< T > & | rhs, |
| T | tolerance = std::numeric_limits<T>::min() |
||
| ) | const |
is rhs == to this vector within a specified tolerance/epsilon
References makVrv::DtMath::isEqual().
| DtVector3 makVrv::DtVector3< T >::operator+ | ( | const DtVector3< T > & | rhs | ) | const |
component wise add two vectors together
| DtVector3 makVrv::DtVector3< T >::operator- | ( | const DtVector3< T > & | rhs | ) | const |
component wise subtract two vectors
| DtVector3& makVrv::DtVector3< T >::operator+= | ( | const DtVector3< T > & | rhs | ) |
component wise add rhs
| DtVector3& makVrv::DtVector3< T >::operator-= | ( | const DtVector3< T > & | rhs | ) |
component wise subtract rhs
| DtVector3< T > makVrv::DtVector3< T >::operator+ | ( | T | fScalar | ) | const |
add a scalar to each component
| DtVector3< T > makVrv::DtVector3< T >::operator- | ( | T | fScalar | ) | const |
subtract a scalar from each component
| DtVector3< T > makVrv::DtVector3< T >::operator* | ( | T | fScalar | ) | const |
multiply a scalar to each component
| DtVector3< T > makVrv::DtVector3< T >::operator/ | ( | T | fScalar | ) | const |
divide each component by a scalar
| DtVector3< T > & makVrv::DtVector3< T >::operator+= | ( | T | fScalar | ) |
add a scalar to each component
| DtVector3< T > & makVrv::DtVector3< T >::operator-= | ( | T | fScalar | ) |
subtract a scalar from each component
| DtVector3< T > & makVrv::DtVector3< T >::operator*= | ( | T | fScalar | ) |
multiply a scalar to each component
| DtVector3< T > & makVrv::DtVector3< T >::operator/= | ( | T | fScalar | ) |
divide each component by a scalar
| bool makVrv::DtVector3< T >::operator> | ( | const DtVector3< T > & | rhs | ) | const |
Return true if each component greater than the corresponding component of rhs.
| bool makVrv::DtVector3< T >::operator< | ( | const DtVector3< T > & | rhs | ) | const |
Return true if each component lessser than the corresponding component of rhs.
| void makVrv::DtVector3< T >::normalize | ( | void | ) |
normalize this vector in place
References makVrv::DtMath::Sqrt().
Referenced by makVrv::DtMath::linePlaneIntersection().
| T makVrv::DtVector3< T >::length | ( | void | ) | const |
get the length of this vector
References makVrv::DtMath::Sqrt().
| T makVrv::DtVector3< T >::squaredLength | ( | void | ) | const |
get the length squared of this vector
| T makVrv::DtVector3< T >::getDistance | ( | const DtVector3< T > & | rhs | ) | const |
get the distance between this vector and rhs
| DtVector3< T > makVrv::DtVector3< T >::crossProduct | ( | const DtVector3< T > & | rhs | ) | const |
get the cross product of this vector and rhs
| T makVrv::DtVector3< T >::dotProduct | ( | const DtVector3< T > & | rhs | ) | const |
get the dot product of this vector and rhs
Referenced by makVrv::DtMath::linePlaneIntersection().
| T makVrv::DtVector3< T >::absDotProduct | ( | const DtVector3< T > & | rhs | ) | const |
get the abs dot product of this vector and rhs
References makVrv::DtMath::Abs().
| DtVector3< T > makVrv::DtVector3< T >::midPoint | ( | const DtVector3< T > & | rhs | ) | const |
get the midpoint between this vector and rhs
| void makVrv::DtVector3< T >::makeCeil | ( | const DtVector3< T > & | rhs | ) |
Each component = max(component, rhs.component)
| void makVrv::DtVector3< T >::makeFloor | ( | const DtVector3< T > & | rhs | ) |
Each component = min(component, rhs.component)
| T makVrv::DtVector3< T >::operator[] | ( | size_t | index | ) | const |
access a component of this vector
References ASSERT_PREDICATE.
| T & makVrv::DtVector3< T >::operator[] | ( | size_t | index | ) |
access a component of this vector
References ASSERT_PREDICATE.
| void makVrv::DtVector3< T >::set | ( | T | x, |
| T | y, | ||
| T | z | ||
| ) |
set values
|
static |
| T makVrv::DtVector3< T >::x |
Referenced by makVrv::DtMath::clamp(), makVrv::DtMatrixUtils< T >::matrixRotation_3x3(), makVrv::DtMatrix3< T >::operator*(), makVrv::DtVector3< float64 >::operator-(), makVrv::operator<<(), makVrv::DtVector3< float64 >::ptr(), makVrv::DtMath::toCartesian(), makVrv::DtVectorPrecisionConvert::toFloat32(), makVrv::DtMatrix4< T >::transformAffine(), makVrv::DtMatrix4< T >::translateBack(), and makVrv::DtVector3< float64 >::typePtr().
| T makVrv::DtVector3< T >::y |
Referenced by makVrv::DtMath::clamp(), makVrv::DtMatrixUtils< T >::matrixRotation_3x3(), makVrv::DtMatrix3< T >::operator*(), makVrv::DtVector3< float64 >::operator-(), makVrv::DtMath::toCartesian(), makVrv::DtVectorPrecisionConvert::toFloat32(), makVrv::DtMatrix4< T >::transformAffine(), and makVrv::DtMatrix4< T >::translateBack().
| T makVrv::DtVector3< T >::z |
Referenced by makVrv::DtMath::clamp(), makVrv::DtMatrixUtils< T >::matrixRotation_3x3(), makVrv::DtMatrix3< T >::operator*(), makVrv::DtVector3< float64 >::operator-(), makVrv::DtMath::toCartesian(), makVrv::DtVectorPrecisionConvert::toFloat32(), makVrv::DtMatrix4< T >::transformAffine(), and makVrv::DtMatrix4< T >::translateBack().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |