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

Public Member Functions

 MatrixT (const T *)
 
 MatrixT (T _11, T _12, T _13, T _14, T _21, T _22, T _23, T _24, T _31, T _32, T _33, T _34, T _41, T _42, T _43, T _44)
 
 operator T* () const
 
 operator const T * () const
 
MatrixT operator* (const MatrixT &m) const
 
vector4operator[] (int row)
 
void identity ()
 
void inverse ()
 
void transpose ()
 
void translate (const vector3 &)
 
void scale (const vector3 &)
 
void buildSRT (const vector3 &scale, T angle, const vector3 &t)
 
MatrixT inversed () const
 
MatrixT transposed () const
 
vector3 transformVec3 (const vector3 &) const
 
vector4 transformVec4 (const vector4 &) const
 
vector3 getTranslation () const
 

Static Public Member Functions

static MatrixTlookAtLH (MatrixT &out, const vector3 &Eye, const vector3 &At, const vector3 &Up)
 
static MatrixTlookAtRH (MatrixT &out, const vector3 &Eye, const vector3 &At, const vector3 &Up)
 
static MatrixT ident ()
 
static MatrixTinverse (MatrixT &out, const MatrixT &in)
 
static MatrixTtranspose (MatrixT &out, const MatrixT &in)
 
static MatrixTrotationX (MatrixT &out, T angle)
 
static MatrixTrotationY (MatrixT &out, T angle)
 
static MatrixTrotationZ (MatrixT &out, T angle)
 
static MatrixTtranslation (MatrixT &out, const vector3 &v)
 
static MatrixTscaling (MatrixT &out, const vector3 &v)
 
static MatrixTperspectiveFovLH (MatrixT &out, T fovy, T aspect, T znear, T zfar)
 
static MatrixTperspectiveFovRH (MatrixT &out, T fovy, T aspect, T znear, T zfar)
 
static MatrixTperspectiveOffCenterLH (MatrixT &out, T left, T right, T bottom, T top, T znear, T zfar)
 
static MatrixTperspectiveOffCenterRH (MatrixT &out, T left, T right, T bottom, T top, T znear, T zfar)
 
static MatrixTorthoLH (MatrixT &out, T width, T height, T zNear, T zFar)
 
static vector3transformVec3 (vector3 &out, const vector3 &in, const MatrixT &mat)
 
static vector4transformVec4 (vector4 &out, const vector4 &in, const MatrixT &mat)
 

Public Attributes

union {
   struct {
      T   m [4][4]
 
   } 
 
   struct {
      T   ml [16]
 
   } 
 
   struct {
      T   m11
 
      T   m12
 
      T   m13
 
      T   m14
 
      T   m21
 
      T   m22
 
      T   m23
 
      T   m24
 
      T   m31
 
      T   m32
 
      T   m33
 
      T   m34
 
      T   m41
 
      T   m42
 
      T   m43
 
      T   m44
 
   } 
 
}; 
 

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