#include <Vector4.h>
Inheritance diagram for Teddy::Maths::TVector4:
Public Methods | |
TVector4 () | |
TVector4 (const T a, const T b, const T c, const T d) | |
TVector4 (const T t) | |
TVector4 (const T *pt) | |
TVector4 (const TVector< T > &vec) | |
TVector4 (const TVector< T > &vec, const T t) | |
TVector4 (const TVector4< T > &vec) | |
operator T * () | |
T & | operator[] (const int n) |
operator const T * () const | |
T | operator[] (const int n) const |
TVector4< T > | operator- () const |
void | operator= (const T t) |
void | operator= (const T *pt) |
void | operator= (const TVector< T > &vec) |
void | operator= (const TVector4< T > &vec) |
bool | operator== (const TVector4< T > &vec) const |
bool | operator!= (const TVector4< T > &vec) const |
TVector4< T > | operator+ (const T t) const |
TVector4< T > | operator- (const T t) const |
TVector4< T > | operator * (const T t) const |
TVector4< T > | operator/ (const T t) const |
const TVector4< T > & | operator+= (const T t) |
const TVector4< T > & | operator-= (const T t) |
const TVector4< T > & | operator *= (const T t) |
const TVector4< T > & | operator/= (const T t) |
TVector4< T > | operator+ (const TVector4< T > &vec) const |
TVector4< T > | operator- (const TVector4< T > &vec) const |
TVector4< T > | operator * (const TVector4< T > &vec) const |
TVector4< T > | operator/ (const TVector4< T > &vec) const |
const TVector4< T > & | operator+= (const TVector4< T > &vec) |
const TVector4< T > & | operator-= (const TVector4< T > &vec) |
const TVector4< T > & | operator *= (const TVector4< T > &vec) |
const TVector4< T > & | operator/= (const TVector4< T > &vec) |
T | operator| (const TVector4< T > &vec) const |
T | magnitudeSquared () const |
T | magnitude () const |
void | normalize () |
Public Attributes | |
T | v [4] |
This template class implements a simple 4D vector with x, y, z, and w coordinates. Like TVector, it is templatized and macros are defined for the most common types.
Definition at line 68 of file Vector4.h.
|
|
|
Definition at line 76 of file Vector4.h. References v. |
|
|
|
|
|
|
|
Definition at line 86 of file Vector4.h. References v. |
|
|
|
Definition at line 140 of file Vector4.h. References magnitudeSquared. |
|
Definition at line 139 of file Vector4.h. References v. Referenced by magnitude. |
|
|
|
Definition at line 128 of file Vector4.h. References v. |
|
Definition at line 118 of file Vector4.h. References v. |
|
Definition at line 132 of file Vector4.h. References v. |
|
Definition at line 122 of file Vector4.h. References v. |
|
Definition at line 92 of file Vector4.h. References v. |
|
Definition at line 90 of file Vector4.h. References v. |
|
Definition at line 111 of file Vector4.h. References v. |
|
Definition at line 126 of file Vector4.h. References v. |
|
Definition at line 116 of file Vector4.h. References v. |
|
Definition at line 130 of file Vector4.h. References v. |
|
Definition at line 120 of file Vector4.h. References v. |
|
Definition at line 127 of file Vector4.h. References v. |
|
Definition at line 117 of file Vector4.h. References v. |
|
Definition at line 94 of file Vector4.h. References v. |
|
Definition at line 131 of file Vector4.h. References v. |
|
Definition at line 121 of file Vector4.h. References v. |
|
Definition at line 129 of file Vector4.h. References v. |
|
Definition at line 119 of file Vector4.h. References v. |
|
Definition at line 133 of file Vector4.h. References v. |
|
Definition at line 123 of file Vector4.h. References v. |
|
Definition at line 100 of file Vector4.h. References v. |
|
Definition at line 99 of file Vector4.h. References v. |
|
Definition at line 98 of file Vector4.h. References v. |
|
Definition at line 97 of file Vector4.h. References v. |
|
Definition at line 102 of file Vector4.h. References v, and VECTOR4_EPSILON. |
|
Definition at line 93 of file Vector4.h. References v. |
|
Definition at line 91 of file Vector4.h. References v. |
|
Definition at line 136 of file Vector4.h. References v. |
|
Definition at line 70 of file Vector4.h. Referenced by magnitudeSquared, operator *, operator *=, operator const T *, operator T *, operator!=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator=, operator==, operator[], operator|, Teddy::Maths::TCrossVector4::TCrossVector4, and TVector4. |