#include <MercuryMatrix.h>
Public Member Functions | |
MercuryMatrix () | |
MercuryMatrix (const MercuryMatrix &m) | |
float * | operator[] (unsigned int i) |
const float * | operator[] (unsigned int i) const |
Allow typecasting to float * for use in APIs. | |
const MercuryMatrix & | operator= (const MercuryMatrix &m) |
const MercuryMatrix & | operator= (const float *m) |
float * | Ptr () |
const float * | Ptr () const |
MercuryMatrix | operator * (const MercuryMatrix &m) const |
MercuryMatrix & | operator *= (const MercuryMatrix &m) |
void | Translate (float x, float y, float z) |
void | RotateXYZ (float x, float y, float z) |
Rotate along the 3 primariy axes by given amounts (in deg). | |
void | RotateAngAxis (float fAngle, float x, float y, float z) |
Rotate a given amount (fAngle) in degrees around pAxis. | |
void | Scale (float x, float y, float z) |
void | Transotale (float tX, float tY, float tZ, float rX, float rY, float rZ, float sX, float sY, float sZ) |
void | Transpose () |
void | Zero () |
void | Identity () |
Private Attributes | |
float | m_matrix [4][4] |
[row][column] (The internal matrix) |
Definition at line 14 of file MercuryMatrix.h.
MercuryMatrix::MercuryMatrix | ( | ) |
Definition at line 6 of file MercuryMatrix.cpp.
MercuryMatrix::MercuryMatrix | ( | const MercuryMatrix & | m | ) | [inline] |
Definition at line 21 of file MercuryMatrix.h.
float* MercuryMatrix::operator[] | ( | unsigned int | i | ) | [inline] |
Definition at line 22 of file MercuryMatrix.h.
const float* MercuryMatrix::operator[] | ( | unsigned int | i | ) | const [inline] |
const MercuryMatrix & MercuryMatrix::operator= | ( | const MercuryMatrix & | m | ) |
Definition at line 11 of file MercuryMatrix.cpp.
const MercuryMatrix & MercuryMatrix::operator= | ( | const float * | m | ) |
Definition at line 17 of file MercuryMatrix.cpp.
float* MercuryMatrix::Ptr | ( | ) | [inline] |
Definition at line 27 of file MercuryMatrix.h.
const float* MercuryMatrix::Ptr | ( | ) | const [inline] |
Definition at line 28 of file MercuryMatrix.h.
MercuryMatrix MercuryMatrix::operator * | ( | const MercuryMatrix & | m | ) | const |
Definition at line 200 of file MercuryMatrix.cpp.
MercuryMatrix & MercuryMatrix::operator *= | ( | const MercuryMatrix & | m | ) |
Definition at line 207 of file MercuryMatrix.cpp.
void MercuryMatrix::Translate | ( | float | x, | |
float | y, | |||
float | z | |||
) |
Definition at line 69 of file MercuryMatrix.cpp.
void MercuryMatrix::RotateXYZ | ( | float | x, | |
float | y, | |||
float | z | |||
) |
Rotate along the 3 primariy axes by given amounts (in deg).
Definition at line 78 of file MercuryMatrix.cpp.
void MercuryMatrix::RotateAngAxis | ( | float | fAngle, | |
float | x, | |||
float | y, | |||
float | z | |||
) |
Rotate a given amount (fAngle) in degrees around pAxis.
Definition at line 118 of file MercuryMatrix.cpp.
void MercuryMatrix::Scale | ( | float | x, | |
float | y, | |||
float | z | |||
) |
Definition at line 189 of file MercuryMatrix.cpp.
void MercuryMatrix::Transotale | ( | float | tX, | |
float | tY, | |||
float | tZ, | |||
float | rX, | |||
float | rY, | |||
float | rZ, | |||
float | sX, | |||
float | sY, | |||
float | sZ | |||
) |
Definition at line 148 of file MercuryMatrix.cpp.
void MercuryMatrix::Transpose | ( | ) | [inline] |
Definition at line 40 of file MercuryMatrix.h.
void MercuryMatrix::Zero | ( | ) |
Definition at line 23 of file MercuryMatrix.cpp.
void MercuryMatrix::Identity | ( | ) |
Definition at line 46 of file MercuryMatrix.cpp.
float MercuryMatrix::m_matrix[4][4] [private] |