Oxygine
1
2g game engine
|
Public Types | |
typedef T | type |
Public Member Functions | |
VectorT2 (T, T) | |
VectorT2 & | operator+= (const VectorT2 &) |
VectorT2 & | operator-= (const VectorT2 &) |
VectorT2 | operator+ (const VectorT2 &) const |
VectorT2 | operator- (const VectorT2 &) const |
VectorT2 | operator- () const |
void | set (T x_, T y_) |
void | setZero () |
template<class R > | |
VectorT2 | operator* (R s) const |
template<class R > | |
VectorT2 | operator/ (R s) const |
template<class R > | |
VectorT2 | operator*= (R s) |
template<class R > | |
VectorT2 | operator/= (R s) |
VectorT2 | mult (const VectorT2 &r) const |
VectorT2 | div (const VectorT2 &r) const |
operator VectorT2< float > () const | |
template<typename R > | |
R | cast () const |
bool | operator== (const VectorT2 &r) const |
bool | operator!= (const VectorT2 &r) const |
T | length () const |
T | sqlength () const |
void | normalize () |
void | normalizeTo (T len) |
VectorT2 | normalized () const |
float | distance (const VectorT2 &v) const |
T | dot (const VectorT2 &vr) const |
Static Public Member Functions | |
static T | dot (const VectorT2 &v1, const VectorT2 &v2) |
static VectorT2 & | normalize (VectorT2 &out, const VectorT2 &v) |
Public Attributes | |
struct { | |
T x | |
T y | |
}; | |