#include <KeosVector4.h>
Public Member Functions | |
| CVector4 (T X=0, T Y=0, T Z=0, T W=1) | |
| Default constructor. | |
| void | Set (T X, T Y, T Z, T W) |
| Set vector. | |
| T | Length () const |
| Returns the length (magnitude) of the vector (sqrt(x² + y²)). | |
| T | LengthSq () const |
| Returns the square of the length(magnitude) of the vector (x² + y²). | |
| void | Normalize () |
| Normalizes the vector. | |
| CVector4< T > | operator+ () const |
| CVector4< T > | operator- () const |
| CVector4< T > | operator+ (const CVector4< T > &v) const |
| CVector4< T > | operator- (const CVector4< T > &v) const |
| const CVector4< T > & | operator+= (const CVector4< T > &v) |
| const CVector4< T > & | operator-= (const CVector4< T > &v) |
| CVector4< T > | operator * (T t) const |
| CVector4< T > | operator/ (T t) const |
| const CVector4< T > & | operator *= (T t) |
| const CVector4< T > & | operator/= (T t) |
| bool | operator== (const CVector4< T > &v) const |
| bool | operator!= (const CVector4< T > &v) const |
| operator T * () | |
| T* cast operator. | |
Public Attributes | |
| T | x |
| T | y |
| T | z |
| T | w |
Definition at line 34 of file KeosVector4.h.
| Keos::CVector4< T >::CVector4 | ( | T | X = 0, |
|
| T | Y = 0, |
|||
| T | Z = 0, |
|||
| T | W = 1 | |||
| ) | [inline] |
| void Keos::CVector4< T >::Set | ( | T | X, | |
| T | Y, | |||
| T | Z, | |||
| T | W | |||
| ) | [inline] |
Set vector.
Definition at line 114 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| T Keos::CVector4< T >::Length | ( | ) | const [inline] |
Returns the length (magnitude) of the vector (sqrt(x² + y²)).
Definition at line 124 of file KeosVector4.h.
References Keos::CVector4< T >::LengthSq().
Referenced by Keos::CVector4< T >::Normalize().
| T Keos::CVector4< T >::LengthSq | ( | ) | const [inline] |
Returns the square of the length(magnitude) of the vector (x² + y²).
Definition at line 131 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
Referenced by Keos::CVector4< T >::Length().
| void Keos::CVector4< T >::Normalize | ( | ) | [inline] |
Normalizes the vector.
Definition at line 138 of file KeosVector4.h.
References Keos::CVector4< T >::Length(), Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| CVector4< T > Keos::CVector4< T >::operator+ | ( | ) | const [inline] |
Definition at line 153 of file KeosVector4.h.
| CVector4< T > Keos::CVector4< T >::operator- | ( | ) | const [inline] |
Definition at line 160 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| CVector4< T > Keos::CVector4< T >::operator+ | ( | const CVector4< T > & | v | ) | const [inline] |
Definition at line 167 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| CVector4< T > Keos::CVector4< T >::operator- | ( | const CVector4< T > & | v | ) | const [inline] |
Definition at line 174 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| const CVector4< T > & Keos::CVector4< T >::operator+= | ( | const CVector4< T > & | v | ) | [inline] |
Definition at line 181 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| const CVector4< T > & Keos::CVector4< T >::operator-= | ( | const CVector4< T > & | v | ) | [inline] |
Definition at line 193 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| CVector4< T > Keos::CVector4< T >::operator * | ( | T | t | ) | const [inline] |
Definition at line 205 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| CVector4< T > Keos::CVector4< T >::operator/ | ( | T | t | ) | const [inline] |
Definition at line 212 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| const CVector4< T > & Keos::CVector4< T >::operator *= | ( | T | t | ) | [inline] |
Definition at line 219 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| const CVector4< T > & Keos::CVector4< T >::operator/= | ( | T | t | ) | [inline] |
Definition at line 231 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| bool Keos::CVector4< T >::operator== | ( | const CVector4< T > & | v | ) | const [inline] |
Definition at line 243 of file KeosVector4.h.
References Keos::CVector4< T >::w, Keos::CVector4< T >::x, Keos::CVector4< T >::y, and Keos::CVector4< T >::z.
| bool Keos::CVector4< T >::operator!= | ( | const CVector4< T > & | v | ) | const [inline] |
Definition at line 253 of file KeosVector4.h.
| Keos::CVector4< T >::operator T * | ( | ) | [inline] |
T* cast operator.
Definition at line 260 of file KeosVector4.h.
References Keos::CVector4< T >::x.
| T Keos::CVector4< T >::x |
Definition at line 83 of file KeosVector4.h.
Referenced by Keos::CVector4< T >::LengthSq(), Keos::CVector4< T >::Normalize(), Keos::CVector4< T >::operator *(), Keos::CVector4< T >::operator *=(), Keos::CVector4< T >::operator T *(), Keos::CVector4< T >::operator+(), Keos::CVector4< T >::operator+=(), Keos::CVector4< T >::operator-(), Keos::CVector4< T >::operator-=(), Keos::CVector4< T >::operator/(), Keos::CVector4< T >::operator/=(), Keos::CVector4< T >::operator==(), Keos::operator>>(), Keos::CVector4< T >::Set(), Keos::CShader::SetParameter(), Keos::VectorCross(), and Keos::VectorDot().
| T Keos::CVector4< T >::y |
Definition at line 83 of file KeosVector4.h.
Referenced by Keos::CVector4< T >::LengthSq(), Keos::CVector4< T >::Normalize(), Keos::CVector4< T >::operator *(), Keos::CVector4< T >::operator *=(), Keos::CVector4< T >::operator+(), Keos::CVector4< T >::operator+=(), Keos::CVector4< T >::operator-(), Keos::CVector4< T >::operator-=(), Keos::CVector4< T >::operator/(), Keos::CVector4< T >::operator/=(), Keos::CVector4< T >::operator==(), Keos::operator>>(), Keos::CVector4< T >::Set(), Keos::CShader::SetParameter(), Keos::VectorCross(), and Keos::VectorDot().
| T Keos::CVector4< T >::z |
Definition at line 83 of file KeosVector4.h.
Referenced by Keos::CVector4< T >::LengthSq(), Keos::CVector4< T >::Normalize(), Keos::CVector4< T >::operator *(), Keos::CVector4< T >::operator *=(), Keos::CVector4< T >::operator+(), Keos::CVector4< T >::operator+=(), Keos::CVector4< T >::operator-(), Keos::CVector4< T >::operator-=(), Keos::CVector4< T >::operator/(), Keos::CVector4< T >::operator/=(), Keos::CVector4< T >::operator==(), Keos::operator>>(), Keos::CVector4< T >::Set(), Keos::CShader::SetParameter(), Keos::VectorCross(), and Keos::VectorDot().
| T Keos::CVector4< T >::w |
Definition at line 83 of file KeosVector4.h.
Referenced by Keos::CVector4< T >::LengthSq(), Keos::CVector4< T >::Normalize(), Keos::CVector4< T >::operator *(), Keos::CVector4< T >::operator *=(), Keos::CVector4< T >::operator+(), Keos::CVector4< T >::operator+=(), Keos::CVector4< T >::operator-(), Keos::CVector4< T >::operator-=(), Keos::CVector4< T >::operator/(), Keos::CVector4< T >::operator/=(), Keos::CVector4< T >::operator==(), Keos::operator>>(), Keos::CVector4< T >::Set(), Keos::CShader::SetParameter(), Keos::VectorCross(), and Keos::VectorDot().
1.5.1-p1