Oxygine  1
2g game engine
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
oxygine::VectorT2< T > Class Template Reference

Public Types

typedef T type
 

Public Member Functions

 VectorT2 (T, T)
 
VectorT2operator+= (const VectorT2 &)
 
VectorT2operator-= (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 >
cast () const
 
bool operator== (const VectorT2 &r) const
 
bool operator!= (const VectorT2 &r) const
 
length () const
 
sqlength () const
 
void normalize ()
 
void normalizeTo (T len)
 
VectorT2 normalized () const
 
float distance (const VectorT2 &v) const
 
dot (const VectorT2 &vr) const
 

Static Public Member Functions

static T dot (const VectorT2 &v1, const VectorT2 &v2)
 
static VectorT2normalize (VectorT2 &out, const VectorT2 &v)
 

Public Attributes

struct {
   T   x
 
   T   y
 
}; 
 

The documentation for this class was generated from the following file: