Oxygine
1
2g game engine
|
Public Types | |
typedef T | type |
Public Member Functions | |
VectorT3 (const T *) | |
VectorT3 (T, T, T) | |
VectorT3 & | operator+= (const VectorT3 &) |
VectorT3 & | operator-= (const VectorT3 &) |
VectorT3 | operator+ (const VectorT3 &) const |
VectorT3 | operator- (const VectorT3 &) const |
VectorT3 | operator- () const |
VectorT3 | operator* (T) const |
VectorT3 | operator/ (T) const |
VectorT3 & | operator*= (T) |
VectorT3 & | operator/= (T) |
template<class R > | |
operator VectorT3< R > () const | |
VectorT2< T > | xy () const |
bool | operator== (const VectorT3 &r) const |
bool | operator!= (const VectorT3 &r) const |
void | normalize () |
VectorT3 | normalized () const |
void | clamp (const VectorT3 &min, const VectorT3 &max) |
T | length () const |
T | dot (const VectorT3 &p) const |
T & | operator[] (int i) |
const T & | operator[] (int i) const |
Static Public Member Functions | |
static VectorT3 & | cross (VectorT3 &out, const VectorT3 &v1, const VectorT3 &v2) |
static T | dot (const VectorT3 &v1, const VectorT3 &v2) |
static VectorT3 & | normalize (VectorT3 &out, const VectorT3 &v) |
static VectorT3 & | normalFromPoints (VectorT3 &out, const VectorT3 &v1, const VectorT3 &v2, const VectorT3 &v3) |
Public Attributes | |
union { | |
struct { | |
T x | |
T y | |
T z | |
} | |
T m [3] | |
}; | |