Public Member Functions | |
TVector3Template (void) | |
template<class U > | |
TVector3Template (const TVector3Template< U > &inVector) | |
TVector3Template (const T &xx, const T &yy, const T &zz) | |
void | SetValues (const T xx, const T yy, const T zz) |
uint32 | GetDimension (void) const |
void | SetFromXY (const TVector2Template< T > &v, const T &z) |
TVector2Template< T > & | CastToXY (void) |
const TVector2Template< T > & | CastToXY (void) const |
const T & | operator() (const uint32 elemNum) const |
T & | operator() (const uint32 elemNum) |
const T & | operator[] (const uint32 elemNum) const |
T & | operator[] (const uint32 elemNum) |
T & | X (void) |
T & | Y (void) |
T & | Z (void) |
const T & | X (void) const |
const T & | Y (void) const |
const T & | Z (void) const |
real64 | GetMagnitude (void) const |
real64 | GetMagnitudeSquared (void) const |
real64 | GetDistance (const TVector3Template< T > &rhs) const |
boolean | SetMagnitude (const T &newMagnitude) |
void | SetToCenter (const TVector3Template< T > &v0, const TVector3Template< T > &v1) |
boolean | Normalize (const T &zeroTolerance=0.0f) |
boolean | NormalizeOrReplaceWith (const TVector3Template< T > &replacement, const T &zeroTolerance=0.0f) |
boolean | Normalized () const |
boolean | IsEqual (const TVector3Template< T > &compareVec, const T &zeroTolerance=0.0f) const |
boolean | IsEqualRelative (const TVector3Template< T > &compareVec, const T &zeroTolerance=0.0f) const |
void | ClampValue (const TVector3Template< T > &min, const TVector3Template< T > &max) |
void | Negate (void) |
void | Interpolate (const TVector3Template< T > &vstart, const TVector3Template< T > &vend, const T &t) |
void | Swap (TVector3Template< T > &v) |
void | BuildOrthonormalBase (TVector3Template< T > &I, TVector3Template< T > &J) const |
TVector3Template< T > & | operator= (const int32 i) |
template<class U > | |
TVector3Template< T > & | operator= (const TVector3Template< U > &v) |
TVector3Template< T > & | operator/= (const T &scalar) |
TVector3Template< T > & | operator*= (const T &scalar) |
TVector3Template< T > & | operator+= (const TVector3Template< T > &v) |
TVector3Template< T > & | operator-= (const TVector3Template< T > &v) |
real64 | operator* (const TVector3Template< T > &b) const |
TVector3Template< T > | operator/ (const T &s) const |
TVector3Template< T > | operator* (const T &s) const |
T | Normalize (TVector3Template< T > &result) const |
T | GetNorm () const |
T | GetSquaredNorm () const |
boolean | IsNull (const T &eps=(T) 1e-5) const |
Public Attributes | |
T | x |
T | y |
T | z |
Static Public Attributes | |
static const TVector3Template< T > | kZero |
static const TVector3Template< T > | kOnes |
static const TVector3Template< T > | kUnitX |
static const TVector3Template< T > | kUnitY |
static const TVector3Template< T > | kUnitZ |
static const TVector3Template< T > | kNegativeX |
static const TVector3Template< T > | kNegativeY |
static const TVector3Template< T > | kNegativeZ |
Defines a three dimensional vector.
TVector3Template< T >::TVector3Template | ( | void | ) | [inline] |
TVector3Template< T >::TVector3Template | ( | const TVector3Template< U > & | inVector | ) | [inline] |
TVector3Template< T >::TVector3Template | ( | const T & | xx, | |
const T & | yy, | |||
const T & | zz | |||
) | [inline] |
void TVector3Template< T >::BuildOrthonormalBase | ( | TVector3Template< T > & | I, | |
TVector3Template< T > & | J | |||
) | const |
const TVector2Template< T > & TVector3Template< T >::CastToXY | ( | void | ) | const [inline] |
TVector2Template< T > & TVector3Template< T >::CastToXY | ( | void | ) | [inline] |
void TVector3Template< T >::ClampValue | ( | const TVector3Template< T > & | min, | |
const TVector3Template< T > & | max | |||
) |
uint32 TVector3Template< T >::GetDimension | ( | void | ) | const [inline] |
real64 TVector3Template< T >::GetDistance | ( | const TVector3Template< T > & | rhs | ) | const [inline] |
real64 TVector3Template< T >::GetMagnitude | ( | void | ) | const [inline] |
real64 TVector3Template< T >::GetMagnitudeSquared | ( | void | ) | const [inline] |
T TVector3Template< T >::GetNorm | ( | ) | const [inline] |
T TVector3Template< T >::GetSquaredNorm | ( | ) | const [inline] |
void TVector3Template< T >::Interpolate | ( | const TVector3Template< T > & | vstart, | |
const TVector3Template< T > & | vend, | |||
const T & | t | |||
) |
boolean TVector3Template< T >::IsEqual | ( | const TVector3Template< T > & | compareVec, | |
const T & | zeroTolerance = 0.0f | |||
) | const |
boolean TVector3Template< T >::IsEqualRelative | ( | const TVector3Template< T > & | compareVec, | |
const T & | zeroTolerance = 0.0f | |||
) | const |
boolean TVector3Template< T >::IsNull | ( | const T & | eps = (T)1e-5 |
) | const [inline] |
void TVector3Template< T >::Negate | ( | void | ) | [inline] |
T TVector3Template< T >::Normalize | ( | TVector3Template< T > & | result | ) | const |
boolean TVector3Template< T >::Normalize | ( | const T & | zeroTolerance = 0.0f |
) | [inline] |
boolean TVector3Template< T >::Normalized | ( | ) | const [inline] |
boolean TVector3Template< T >::NormalizeOrReplaceWith | ( | const TVector3Template< T > & | replacement, | |
const T & | zeroTolerance = 0.0f | |||
) | [inline] |
T & TVector3Template< T >::operator() | ( | const uint32 | elemNum | ) | [inline] |
const T & TVector3Template< T >::operator() | ( | const uint32 | elemNum | ) | const [inline] |
TVector3Template< T > TVector3Template< T >::operator* | ( | const T & | s | ) | const [inline] |
real64 TVector3Template< T >::operator* | ( | const TVector3Template< T > & | b | ) | const [inline] |
TVector3Template< T > & TVector3Template< T >::operator*= | ( | const T & | scalar | ) | [inline] |
TVector3Template< T > & TVector3Template< T >::operator+= | ( | const TVector3Template< T > & | v | ) | [inline] |
TVector3Template< T > & TVector3Template< T >::operator-= | ( | const TVector3Template< T > & | v | ) | [inline] |
TVector3Template< T > TVector3Template< T >::operator/ | ( | const T & | s | ) | const [inline] |
TVector3Template< T > & TVector3Template< T >::operator/= | ( | const T & | scalar | ) | [inline] |
TVector3Template<T>& TVector3Template< T >::operator= | ( | const TVector3Template< U > & | v | ) | [inline] |
TVector3Template<T>& TVector3Template< T >::operator= | ( | const int32 | i | ) | [inline] |
T & TVector3Template< T >::operator[] | ( | const uint32 | elemNum | ) | [inline] |
const T & TVector3Template< T >::operator[] | ( | const uint32 | elemNum | ) | const [inline] |
void TVector3Template< T >::SetFromXY | ( | const TVector2Template< T > & | v, | |
const T & | z | |||
) |
boolean TVector3Template< T >::SetMagnitude | ( | const T & | newMagnitude | ) |
void TVector3Template< T >::SetToCenter | ( | const TVector3Template< T > & | v0, | |
const TVector3Template< T > & | v1 | |||
) |
void TVector3Template< T >::SetValues | ( | const T | xx, | |
const T | yy, | |||
const T | zz | |||
) | [inline] |
void TVector3Template< T >::Swap | ( | TVector3Template< T > & | v | ) |
const T & TVector3Template< T >::X | ( | void | ) | const [inline] |
T & TVector3Template< T >::X | ( | void | ) | [inline] |
const T & TVector3Template< T >::Y | ( | void | ) | const [inline] |
T & TVector3Template< T >::Y | ( | void | ) | [inline] |
const T & TVector3Template< T >::Z | ( | void | ) | const [inline] |
T & TVector3Template< T >::Z | ( | void | ) | [inline] |
const TVector3Template<T> TVector3Template< T >::kNegativeX [static] |
const TVector3Template<T> TVector3Template< T >::kNegativeY [static] |
const TVector3Template<T> TVector3Template< T >::kNegativeZ [static] |
const TVector3Template<T> TVector3Template< T >::kOnes [static] |
const TVector3Template<T> TVector3Template< T >::kUnitX [static] |
const TVector3Template<T> TVector3Template< T >::kUnitY [static] |
const TVector3Template<T> TVector3Template< T >::kUnitZ [static] |
const TVector3Template<T> TVector3Template< T >::kZero [static] |
T TVector3Template< T >::x |
T TVector3Template< T >::y |
T TVector3Template< T >::z |