#include <Vector.h>
Public Types | |
| typedef T | TYPE |
Public Member Functions | |
| Vec4 () | |
| Vec4 (T nx, T ny, T nz, T nw) | |
| Vec4 (const Vec3< T > &src, T aW) | |
| Vec4 (const Vec4< T > &src) | |
| template<typename FromT > | |
| Vec4 (const Vec4< FromT > &src) | |
| Vec4 (const T *d) | |
| Vec4< T > & | operator= (const Vec4< T > &rhs) |
| template<typename FromT > | |
| Vec4< T > & | operator= (const Vec4< FromT > &rhs) |
| T & | operator[] (int n) |
| const T & | operator[] (int n) const |
| const Vec4< T > | operator+ (const Vec4< T > &rhs) const |
| const Vec4< T > | operator- (const Vec4< T > &rhs) const |
| const Vec4< T > | operator* (const Vec4< T > &rhs) const |
| const Vec4< T > | operator/ (const Vec4< T > &rhs) const |
| Vec4< T > & | operator+= (const Vec4< T > &rhs) |
| Vec4< T > & | operator-= (const Vec4< T > &rhs) |
| Vec4< T > & | operator*= (const Vec4< T > &rhs) |
| Vec4< T > & | operator/= (const Vec4< T > &rhs) |
| const Vec4< T > | operator/ (T rhs) const |
| Vec4< T > & | operator+= (T rhs) |
| Vec4< T > & | operator-= (T rhs) |
| Vec4< T > & | operator*= (T rhs) |
| Vec4< T > & | operator/= (T rhs) |
| Vec4< T > | operator- () const |
| bool | operator== (const Vec4< T > &rhs) const |
| bool | operator!= (const Vec4< T > &rhs) const |
| T | length () const |
| void | normalize () |
| void | safeNormalize () |
| T | lengthSquared () const |
| Vec4< T > | lerp (T fact, const Vec4< T > &r) const |
| operator T * () | |
| operator const T * () const | |
Static Public Member Functions | |
| static Vec4< T > | max () |
| static Vec4< T > | zero () |
| static Vec4< T > | one () |
| static Vec4< T > | xAxis () |
| static Vec4< T > | yAxis () |
| static Vec4< T > | zAxis () |
| static Vec4< T > | wAxis () |
Public Attributes | |
| T | x |
| T | y |
| T | z |
| T | w |
Static Public Attributes | |
| static const int | DIM = 4 |
Friends | |
| std::ostream & | operator<< (std::ostream &lhs, const Vec4< T > &rhs) |
| typedef T cinder::Vec4< T >::TYPE |
| cinder::Vec4< T >::Vec4 | ( | ) |
| cinder::Vec4< T >::Vec4 | ( | T | nx, | |
| T | ny, | |||
| T | nz, | |||
| T | nw | |||
| ) |
| cinder::Vec4< T >::Vec4 | ( | const Vec3< T > & | src, | |
| T | aW | |||
| ) |
| cinder::Vec4< T >::Vec4 | ( | const Vec4< T > & | src | ) |
| cinder::Vec4< T >::Vec4 | ( | const T * | d | ) | [explicit] |
| Vec4<T>& cinder::Vec4< T >::operator= | ( | const Vec4< T > & | rhs | ) |
| Vec4<T>& cinder::Vec4< T >::operator= | ( | const Vec4< FromT > & | rhs | ) |
| T& cinder::Vec4< T >::operator[] | ( | int | n | ) |
| const T& cinder::Vec4< T >::operator[] | ( | int | n | ) | const |
| const Vec4<T> cinder::Vec4< T >::operator+ | ( | const Vec4< T > & | rhs | ) | const |
| const Vec4<T> cinder::Vec4< T >::operator- | ( | const Vec4< T > & | rhs | ) | const |
| const Vec4<T> cinder::Vec4< T >::operator* | ( | const Vec4< T > & | rhs | ) | const |
| const Vec4<T> cinder::Vec4< T >::operator/ | ( | const Vec4< T > & | rhs | ) | const |
| Vec4<T>& cinder::Vec4< T >::operator+= | ( | const Vec4< T > & | rhs | ) |
| Vec4<T>& cinder::Vec4< T >::operator-= | ( | const Vec4< T > & | rhs | ) |
| Vec4<T>& cinder::Vec4< T >::operator*= | ( | const Vec4< T > & | rhs | ) |
| Vec4<T>& cinder::Vec4< T >::operator/= | ( | const Vec4< T > & | rhs | ) |
| const Vec4<T> cinder::Vec4< T >::operator/ | ( | T | rhs | ) | const |
| Vec4<T>& cinder::Vec4< T >::operator+= | ( | T | rhs | ) |
| Vec4<T>& cinder::Vec4< T >::operator-= | ( | T | rhs | ) |
| Vec4<T>& cinder::Vec4< T >::operator*= | ( | T | rhs | ) |
| Vec4<T>& cinder::Vec4< T >::operator/= | ( | T | rhs | ) |
| Vec4<T> cinder::Vec4< T >::operator- | ( | ) | const |
| bool cinder::Vec4< T >::operator== | ( | const Vec4< T > & | rhs | ) | const |
| bool cinder::Vec4< T >::operator!= | ( | const Vec4< T > & | rhs | ) | const |
| T cinder::Vec4< T >::length | ( | ) | const |
| void cinder::Vec4< T >::normalize | ( | ) |
| void cinder::Vec4< T >::safeNormalize | ( | ) |
| T cinder::Vec4< T >::lengthSquared | ( | ) | const |
| Vec4<T> cinder::Vec4< T >::lerp | ( | T | fact, | |
| const Vec4< T > & | r | |||
| ) | const |
| static Vec4<T> cinder::Vec4< T >::max | ( | ) | [static] |
| static Vec4<T> cinder::Vec4< T >::zero | ( | ) | [static] |
| static Vec4<T> cinder::Vec4< T >::one | ( | ) | [static] |
| cinder::Vec4< T >::operator T * | ( | ) |
| cinder::Vec4< T >::operator const T * | ( | ) | const |
| static Vec4<T> cinder::Vec4< T >::xAxis | ( | ) | [static] |
| static Vec4<T> cinder::Vec4< T >::yAxis | ( | ) | [static] |
| static Vec4<T> cinder::Vec4< T >::zAxis | ( | ) | [static] |
| static Vec4<T> cinder::Vec4< T >::wAxis | ( | ) | [static] |
| std::ostream& operator<< | ( | std::ostream & | lhs, | |
| const Vec4< T > & | rhs | |||
| ) | [friend] |
| T cinder::Vec4< T >::x |
| T cinder::Vec4< T >::y |
| T cinder::Vec4< T >::z |
| T cinder::Vec4< T >::w |
const int cinder::Vec4< T >::DIM = 4 [static] |