Public Member Functions | |
| TVector4Template (void) | |
| TVector4Template (const T &xx, const T &yy, const T &zz, const T &ww) | |
| template<class U > | |
| TVector4Template (const TVector4Template< U > &v) | |
| void | SetValues (const T &xx, const T &yy, const T &zz, const T &ww) |
| uint32 | GetDimension (void) const |
| void | SetFromXYZ (const TVector3Template< T > &v, const T &w) |
| TVector3Template< T > & | CastToXYZ (void) |
| const TVector3Template< T > & | CastToXYZ (void) const |
| 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) |
| T & | W (void) |
| const T & | X (void) const |
| const T & | Y (void) const |
| const T & | Z (void) const |
| const T & | W (void) const |
| T | GetMagnitude (void) const |
| T | GetMagnitudeSquared (void) const |
| T | GetDistance (const TVector4Template< T > &rhs) const |
| boolean | SetMagnitude (const T &newMagnitude) |
| void | SetToCenter (const TVector4Template< T > &v0, const TVector4Template< T > &v1) |
| boolean | Normalize (const T &zeroTolerance=0.0f) |
| boolean | NormalizeOrReplaceWith (const TVector4Template< T > &replacement, const T &zeroTolerance=0.0f) |
| boolean | IsEqual (const TVector4Template< T > &compareVec, const T &zeroTolerance=0.0f) const |
| void | ClampValue (const TVector4Template< T > &min, const TVector4Template< T > &max) |
| void | Negate (void) |
| void | Interpolate (const TVector4Template< T > &vstart, const TVector4Template< T > &vend, const T &t) |
| void | Swap (TVector4Template< T > &v) |
| TVector4Template< T > & | operator/= (const T &scalar) |
| TVector4Template< T > & | operator*= (const T &scalar) |
| TVector4Template< T > & | operator+= (const TVector4Template< T > &v) |
| TVector4Template< T > & | operator-= (const TVector4Template< T > &v) |
| TVector4Template< T > | operator/ (const T &s) const |
| TVector4Template< T > | operator* (const T &s) const |
| TVector4Template< T > | operator+ (const TVector4Template< T > &b) const |
| TVector4Template< T > | operator- (const TVector4Template< T > &b) const |
| TVector4Template< T > | operator- () const |
| boolean | operator== (const TVector4 &rhs) const |
| boolean | operator!= (const TVector4 &rhs) const |
| T | operator* (const TVector4 &b) const |
| TVector4Template< T > | operator% (const TVector4Template< T > &b) const |
| T | Normalize (TVector4Template< T > &result) const |
Public Attributes | |
| T | x |
| T | y |
| T | z |
| T | w |
Static Public Attributes | |
| static const TVector4Template< T > | kZero |
| ( 0.0, 0.0, 0.0, 0.0 ); | |
| static const TVector4Template< T > | kOnes |
| ( 1.0, 1.0, 1.0, 1.0 ); | |
| static const TVector4Template< T > | kUnitX |
| ( 1.0, 0.0, 0.0, 0.0 ); | |
| static const TVector4Template< T > | kUnitY |
| ( 0.0, 1.0, 0.0, 0.0 ); | |
| static const TVector4Template< T > | kUnitZ |
| ( 0.0, 0.0, 1.0, 0.0 ); | |
| static const TVector4Template< T > | kUnitW |
| ( 0.0, 0.0, 0.0, 1.0 ); | |
| static const TVector4Template< T > | kNegativeX |
| ( -1.0, 0.0, 0.0, 0.0 ); | |
| static const TVector4Template< T > | kNegativeY |
| ( 0.0, -1.0, 0.0, 0.0 ); | |
| static const TVector4Template< T > | kNegativeZ |
| ( 0.0, 0.0, -1.0, 0.0 ); | |
| static const TVector4Template< T > | kNegativeW |
| ( 0.0, 0.0, 0.0, -1.0 ); | |
Defines a 4 dimensional floating point vector.
| TVector4Template< T >::TVector4Template | ( | void | ) | [inline] |
| TVector4Template< T >::TVector4Template | ( | const T & | xx, | |
| const T & | yy, | |||
| const T & | zz, | |||
| const T & | ww | |||
| ) | [inline] |
| TVector4Template< T >::TVector4Template | ( | const TVector4Template< U > & | v | ) | [inline] |
| const TVector2Template< T > & TVector4Template< T >::CastToXY | ( | void | ) | const [inline] |
| TVector2Template< T > & TVector4Template< T >::CastToXY | ( | void | ) | [inline] |
| const TVector3Template< T > & TVector4Template< T >::CastToXYZ | ( | void | ) | const [inline] |
| TVector3Template< T > & TVector4Template< T >::CastToXYZ | ( | void | ) | [inline] |
| void TVector4Template< T >::ClampValue | ( | const TVector4Template< T > & | min, | |
| const TVector4Template< T > & | max | |||
| ) |
| uint32 TVector4Template< T >::GetDimension | ( | void | ) | const [inline] |
| T TVector4Template< T >::GetDistance | ( | const TVector4Template< T > & | rhs | ) | const [inline] |
| T TVector4Template< T >::GetMagnitude | ( | void | ) | const [inline] |
| T TVector4Template< T >::GetMagnitudeSquared | ( | void | ) | const [inline] |
| void TVector4Template< T >::Interpolate | ( | const TVector4Template< T > & | vstart, | |
| const TVector4Template< T > & | vend, | |||
| const T & | t | |||
| ) |
| boolean TVector4Template< T >::IsEqual | ( | const TVector4Template< T > & | compareVec, | |
| const T & | zeroTolerance = 0.0f | |||
| ) | const |
| void TVector4Template< T >::Negate | ( | void | ) | [inline] |
| T TVector4Template< T >::Normalize | ( | TVector4Template< T > & | result | ) | const |
This sets the passed in vector to the normalized version of this, and returns the magnitude for the vector.
| boolean TVector4Template< T >::Normalize | ( | const T & | zeroTolerance = 0.0f |
) | [inline] |
| boolean TVector4Template< T >::NormalizeOrReplaceWith | ( | const TVector4Template< T > & | replacement, | |
| const T & | zeroTolerance = 0.0f | |||
| ) | [inline] |
| boolean TVector4Template< T >::operator!= | ( | const TVector4 & | rhs | ) | const [inline] |
| TVector4Template<T> TVector4Template< T >::operator% | ( | const TVector4Template< T > & | b | ) | const |
| T & TVector4Template< T >::operator() | ( | const uint32 | elemNum | ) | [inline] |
| const T & TVector4Template< T >::operator() | ( | const uint32 | elemNum | ) | const [inline] |
| T TVector4Template< T >::operator* | ( | const TVector4 & | b | ) | const [inline] |
| TVector4Template<T> TVector4Template< T >::operator* | ( | const T & | s | ) | const [inline] |
| TVector4Template< T > & TVector4Template< T >::operator*= | ( | const T & | scalar | ) | [inline] |
| TVector4Template<T> TVector4Template< T >::operator+ | ( | const TVector4Template< T > & | b | ) | const [inline] |
| TVector4Template< T > & TVector4Template< T >::operator+= | ( | const TVector4Template< T > & | v | ) | [inline] |
| TVector4Template<T> TVector4Template< T >::operator- | ( | ) | const [inline] |
| TVector4Template<T> TVector4Template< T >::operator- | ( | const TVector4Template< T > & | b | ) | const [inline] |
| TVector4Template< T > & TVector4Template< T >::operator-= | ( | const TVector4Template< T > & | v | ) | [inline] |
| TVector4Template<T> TVector4Template< T >::operator/ | ( | const T & | s | ) | const [inline] |
| TVector4Template< T > & TVector4Template< T >::operator/= | ( | const T & | scalar | ) | [inline] |
| boolean TVector4Template< T >::operator== | ( | const TVector4 & | rhs | ) | const [inline] |
| T & TVector4Template< T >::operator[] | ( | const uint32 | elemNum | ) | [inline] |
| const T & TVector4Template< T >::operator[] | ( | const uint32 | elemNum | ) | const [inline] |
| void TVector4Template< T >::SetFromXYZ | ( | const TVector3Template< T > & | v, | |
| const T & | w | |||
| ) |
| boolean TVector4Template< T >::SetMagnitude | ( | const T & | newMagnitude | ) |
| void TVector4Template< T >::SetToCenter | ( | const TVector4Template< T > & | v0, | |
| const TVector4Template< T > & | v1 | |||
| ) |
| void TVector4Template< T >::SetValues | ( | const T & | xx, | |
| const T & | yy, | |||
| const T & | zz, | |||
| const T & | ww | |||
| ) | [inline] |
| void TVector4Template< T >::Swap | ( | TVector4Template< T > & | v | ) |
| const T & TVector4Template< T >::W | ( | void | ) | const [inline] |
| T & TVector4Template< T >::W | ( | void | ) | [inline] |
| const T & TVector4Template< T >::X | ( | void | ) | const [inline] |
| T & TVector4Template< T >::X | ( | void | ) | [inline] |
| const T & TVector4Template< T >::Y | ( | void | ) | const [inline] |
| T & TVector4Template< T >::Y | ( | void | ) | [inline] |
| const T & TVector4Template< T >::Z | ( | void | ) | const [inline] |
| T & TVector4Template< T >::Z | ( | void | ) | [inline] |
const TVector4Template<T> TVector4Template< T >::kNegativeW [static] |
( 0.0, 0.0, 0.0, -1.0 );
const TVector4Template<T> TVector4Template< T >::kNegativeX [static] |
( -1.0, 0.0, 0.0, 0.0 );
const TVector4Template<T> TVector4Template< T >::kNegativeY [static] |
( 0.0, -1.0, 0.0, 0.0 );
const TVector4Template<T> TVector4Template< T >::kNegativeZ [static] |
( 0.0, 0.0, -1.0, 0.0 );
const TVector4Template<T> TVector4Template< T >::kOnes [static] |
( 1.0, 1.0, 1.0, 1.0 );
const TVector4Template<T> TVector4Template< T >::kUnitW [static] |
( 0.0, 0.0, 0.0, 1.0 );
const TVector4Template<T> TVector4Template< T >::kUnitX [static] |
( 1.0, 0.0, 0.0, 0.0 );
const TVector4Template<T> TVector4Template< T >::kUnitY [static] |
( 0.0, 1.0, 0.0, 0.0 );
const TVector4Template<T> TVector4Template< T >::kUnitZ [static] |
( 0.0, 0.0, 1.0, 0.0 );
const TVector4Template<T> TVector4Template< T >::kZero [static] |
( 0.0, 0.0, 0.0, 0.0 );
| T TVector4Template< T >::w |
| T TVector4Template< T >::x |
| T TVector4Template< T >::y |
| T TVector4Template< T >::z |
1.6.3