Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Mat4 Class Reference

#include <Matrix.h>

List of all members.

Public Member Functions

 Mat4 ()
 Mat4 (float val)
 Mat4 (float mat[])
void loadIdentity ()
void set (const float *matrix)
void postMultiply (const Mat4 &mat)
void setTranslation (const float *translation)
void setInverseTranslation (const float *translation)
void setRotationRadians (const float *angles)
void translateVect (float *pVect) const
void rotateVect (float *pVect) const
void inverseTranslateVect (float *pVect) const
void inverseRotateVect (float *pVect) const
const float * getMatrix () const
void loadRotateX (const float angle)
void loadRotateY (const float angle)
void loadRotateZ (const float angle)
void loadRotateXY (const float angleX, const float angleY)
void loadRotateZXY (const float angleX, const float angleY, const float angleZ)
void loadRotate (const Vec3 &v, const float angle)
void loadProjectionMatrix (float fov, float aspect, float zNear, float zFar)
void translate (const Vec3 &v)
void setTranslate (const Vec3 &v)
Vec3 translateVec (const Vec3 &v)
void scale (const float sx, const float sy, const float sz)
void rotateX (const float angle)
void rotateY (const float angle)
void rotateZ (const float angle)
void rotateXY (const float angleX, const float angleY)
void rotateZXY (const float angleX, const float angleY, const float angleZ)
void rotate (const Vec3 &v, const float angle)
Vec3 rotateVec (const Vec3 &v)
void transpose ()
 operator float * ()
const float & operator() (const int row, const int column) const
const float & operator[] (const int index) const
void operator+= (const Mat4 &v)
void operator-= (const Mat4 &v)
void operator *= (const Mat4 &v)
void operator+= (const float s)
void operator-= (const float s)
void operator *= (const float s)
void operator/= (const float s)
Mat4 operator+ (const Mat4 &v)
Mat4 operator+ (const float s)
Mat4 operator- ()
Mat4 operator- (const Mat4 &v)
Mat4 operator- (const float s)
Mat4 operator * (const Mat4 &v)
Vec3 operator * (const Vec3 &v)
Vec4 operator * (const Vec4 &v)
Mat4 operator * (const float s)
Mat4 operator/ (const float s)
Mat4 operator! ()

Protected Attributes

float m [16]


Detailed Description

Matrix.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 14 of file Matrix.h.


Constructor & Destructor Documentation

Mat4::Mat4  ) 
 

Matrix.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 9 of file Matrix.cpp.

References m.

Mat4::Mat4 float  val  ) 
 

Definition at line 13 of file Matrix.cpp.

References m.

Mat4::Mat4 float  mat[]  ) 
 

Definition at line 17 of file Matrix.cpp.

References m.


Member Function Documentation

const float* Mat4::getMatrix  )  const [inline]
 

Definition at line 32 of file Matrix.h.

References m.

Referenced by MS_Vec_Transform(), and MS_Vec_Transform3().

void Mat4::inverseRotateVect float *  pVect  )  const [inline]
 

Definition at line 103 of file Matrix.h.

References m.

Referenced by MilkShape::attachSkin().

void Mat4::inverseTranslateVect float *  pVect  )  const [inline]
 

Definition at line 119 of file Matrix.h.

References m.

Referenced by MilkShape::attachSkin().

void Mat4::loadIdentity  ) 
 

Definition at line 21 of file Matrix.cpp.

References m.

void Mat4::loadProjectionMatrix float  fov,
float  aspect,
float  zNear,
float  zFar
 

Definition at line 183 of file Matrix.cpp.

References m.

void Mat4::loadRotate const Vec3 v,
const float  angle
 

Definition at line 161 of file Matrix.cpp.

References m, Vec3::x, Vec3::y, and Vec3::z.

Referenced by rotate().

void Mat4::loadRotateX const float  angle  ) 
 

Definition at line 27 of file Matrix.cpp.

References m.

Referenced by rotateX().

void Mat4::loadRotateXY const float  angleX,
const float  angleY
 

Definition at line 102 of file Matrix.cpp.

References m.

Referenced by rotateXY().

void Mat4::loadRotateY const float  angle  ) 
 

Definition at line 52 of file Matrix.cpp.

References m.

Referenced by rotateY().

void Mat4::loadRotateZ const float  angle  ) 
 

Definition at line 77 of file Matrix.cpp.

References m.

Referenced by rotateZ().

void Mat4::loadRotateZXY const float  angleX,
const float  angleY,
const float  angleZ
 

Definition at line 130 of file Matrix.cpp.

References m.

Referenced by MS_Bone::advanceTo(), MS_Bone::initialize(), and rotateZXY().

Mat4 Mat4::operator * const float  s  ) 
 

Definition at line 398 of file Matrix.cpp.

References m.

Vec4 Mat4::operator * const Vec4 v  ) 
 

Definition at line 439 of file Matrix.cpp.

References m, Vec4::x, Vec4::y, and Vec4::z.

Vec3 Mat4::operator * const Vec3 v  ) 
 

Definition at line 432 of file Matrix.cpp.

References m, Vec3::x, Vec3::y, and Vec3::z.

Mat4 Mat4::operator * const Mat4 v  ) 
 

Definition at line 382 of file Matrix.cpp.

References m.

void Mat4::operator *= const float  s  ) 
 

Definition at line 408 of file Matrix.cpp.

References m.

void Mat4::operator *= const Mat4 v  ) 
 

Definition at line 414 of file Matrix.cpp.

References m.

Mat4::operator float *  )  [inline]
 

Definition at line 59 of file Matrix.h.

References m.

Mat4 Mat4::operator!  ) 
 

Definition at line 463 of file Matrix.cpp.

References m.

const float& Mat4::operator() const int  row,
const int  column
const [inline]
 

Definition at line 60 of file Matrix.h.

References m.

Mat4 Mat4::operator+ const float  s  ) 
 

Definition at line 325 of file Matrix.cpp.

References m.

Mat4 Mat4::operator+ const Mat4 v  ) 
 

Definition at line 317 of file Matrix.cpp.

References m.

void Mat4::operator+= const float  s  ) 
 

Definition at line 369 of file Matrix.cpp.

References m.

void Mat4::operator+= const Mat4 v  ) 
 

Definition at line 357 of file Matrix.cpp.

References m.

Mat4 Mat4::operator- const float  s  ) 
 

Definition at line 341 of file Matrix.cpp.

References m.

Mat4 Mat4::operator- const Mat4 v  ) 
 

Definition at line 333 of file Matrix.cpp.

References m.

Mat4 Mat4::operator-  ) 
 

Definition at line 349 of file Matrix.cpp.

References m.

void Mat4::operator-= const float  s  ) 
 

Definition at line 375 of file Matrix.cpp.

References m.

void Mat4::operator-= const Mat4 v  ) 
 

Definition at line 363 of file Matrix.cpp.

References m.

Mat4 Mat4::operator/ const float  s  ) 
 

Definition at line 447 of file Matrix.cpp.

References m.

void Mat4::operator/= const float  s  ) 
 

Definition at line 457 of file Matrix.cpp.

References m.

const float& Mat4::operator[] const int  index  )  const [inline]
 

Definition at line 61 of file Matrix.h.

References m.

void Mat4::postMultiply const Mat4 mat  ) 
 

Definition at line 517 of file Matrix.cpp.

References m, and set().

Here is the call graph for this function:

void Mat4::rotate const Vec3 v,
const float  angle
 

Definition at line 282 of file Matrix.cpp.

References loadRotate().

Here is the call graph for this function:

Vec3 Mat4::rotateVec const Vec3 v  ) 
 

Definition at line 238 of file Matrix.cpp.

References m, Vec3::x, Vec3::y, and Vec3::z.

void Mat4::rotateVect float *  pVect  )  const [inline]
 

Definition at line 93 of file Matrix.h.

References m.

Referenced by MilkShape::render().

void Mat4::rotateX const float  angle  ) 
 

Definition at line 247 of file Matrix.cpp.

References loadRotateX().

Here is the call graph for this function:

void Mat4::rotateXY const float  angleX,
const float  angleY
 

Definition at line 268 of file Matrix.cpp.

References loadRotateXY().

Here is the call graph for this function:

void Mat4::rotateY const float  angle  ) 
 

Definition at line 254 of file Matrix.cpp.

References loadRotateY().

Here is the call graph for this function:

void Mat4::rotateZ const float  angle  ) 
 

Definition at line 261 of file Matrix.cpp.

References loadRotateZ().

Here is the call graph for this function:

void Mat4::rotateZXY const float  angleX,
const float  angleY,
const float  angleZ
 

Definition at line 275 of file Matrix.cpp.

References loadRotateZXY().

Here is the call graph for this function:

void Mat4::scale const float  sx,
const float  sy,
const float  sz
 

Definition at line 232 of file Matrix.cpp.

References m.

void Mat4::set const float *  matrix  )  [inline]
 

Definition at line 89 of file Matrix.h.

References m.

Referenced by postMultiply().

void Mat4::setInverseTranslation const float *  translation  ) 
 

Definition at line 550 of file Matrix.cpp.

References m.

void Mat4::setRotationRadians const float *  angles  ) 
 

Definition at line 556 of file Matrix.cpp.

References m.

void Mat4::setTranslate const Vec3 v  ) 
 

Definition at line 217 of file Matrix.cpp.

References m, Vec3::x, Vec3::y, and Vec3::z.

Referenced by MS_Bone::advanceTo(), and MS_Bone::initialize().

void Mat4::setTranslation const float *  translation  ) 
 

Definition at line 544 of file Matrix.cpp.

References m.

void Mat4::translate const Vec3 v  ) 
 

Definition at line 210 of file Matrix.cpp.

References m, Vec3::x, Vec3::y, and Vec3::z.

Vec3 Mat4::translateVec const Vec3 v  ) 
 

Definition at line 223 of file Matrix.cpp.

References m, Vec3::x, Vec3::y, and Vec3::z.

void Mat4::translateVect float *  pVect  )  const [inline]
 

Definition at line 113 of file Matrix.h.

References m.

Referenced by MilkShape::render().

void Mat4::transpose  ) 
 

Definition at line 289 of file Matrix.cpp.

References m.


Member Data Documentation

float Mat4::m[16] [protected]
 

Definition at line 85 of file Matrix.h.

Referenced by getMatrix(), inverseRotateVect(), inverseTranslateVect(), loadIdentity(), loadProjectionMatrix(), loadRotate(), loadRotateX(), loadRotateXY(), loadRotateY(), loadRotateZ(), loadRotateZXY(), Mat4(), operator *(), operator *=(), operator float *(), operator!(), operator()(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator[](), postMultiply(), rotateVec(), rotateVect(), scale(), set(), setInverseTranslation(), setRotationRadians(), setTranslate(), setTranslation(), translate(), translateVec(), translateVect(), and transpose().


Generated on Sun Jun 5 15:50:03 2005 for Defacto by  doxygen 1.4.3