#include <Matrix.h>
Public Member Functions | |
Matrix () | |
Matrix (const float &fElement0, const float &fElement4, const float &fElement8, const float &fElement12, const float &fElement1, const float &fElement5, const float &fElement9, const float &fElement13, const float &fElement2, const float &fElement6, const float &fElement10, const float &fElement14, const float &fElement3, const float &fElement7, const float &fElement11, const float &fElement15) | |
Matrix (const Vector &vecOne, const Vector &vecTwo, const Vector &vecThree, const Vector &vecFour=Vector(0.0f, 0.0f, 0.0f)) | |
Matrix (const float *pElements) | |
Matrix (const float vfElements[4][4]) | |
Matrix (const Quaternion &quaRotation) | |
~Matrix () | |
void | Set (const float *pElements) |
void | clearMatrix () |
const float * | Get () const |
void | Set (const unsigned int i, const unsigned int j, const float &fValue) |
const float & | Get (const unsigned int i, const unsigned int j) const |
const float & | Get (const unsigned int i) const |
void | SetRow (const unsigned int i, const float vfValues[4]) |
void | SetColumn (const unsigned int i, const float vfValues[4]) |
void | SetRow (const unsigned int i, const Vector &vecVector) |
void | SetColumn (const unsigned int i, const Vector &vecVector) |
float & | operator() (const unsigned int i, const unsigned int j) |
const float & | operator() (const unsigned int i, const unsigned int j) const |
void | SetTranslation (const Vector &vecTranslation) |
const Vector | GetTranslation () const |
const Quaternion | GetRotation () const |
const Matrix | GetTranslated (const Vector &vecTranslation) const |
void | translate (const Vector &vecTranslation) |
const Matrix | GetScaled (const Vector &vecScale) const |
void | scale (const Vector &vecScale) |
const Matrix | GetRotated (const Quaternion &quaRotation) const |
void | rotate (const Quaternion &quaRotation) |
const Matrix | GetInverse () const |
void | invert () |
const Matrix | GetTransposed () const |
void | transpose () |
const Vector | GetRotated (const Vector &vecOther) const |
const bool | operator== (const Matrix &matOther) const |
const bool | operator!= (const Matrix &matOther) const |
const Matrix | operator* (const Matrix &matOther) const |
const Matrix & | operator*= (const Matrix &matOther) |
const Vector | operator* (const Vector &vecOther) const |
Private Attributes | |
union { | |
float m_vfElements16 [16] | |
float m_vfElements44 [4][4] | |
} | m_vfElements |
Matrix::Matrix | ( | ) | [inline] |
Matrix::Matrix | ( | const float & | fElement0, | |
const float & | fElement4, | |||
const float & | fElement8, | |||
const float & | fElement12, | |||
const float & | fElement1, | |||
const float & | fElement5, | |||
const float & | fElement9, | |||
const float & | fElement13, | |||
const float & | fElement2, | |||
const float & | fElement6, | |||
const float & | fElement10, | |||
const float & | fElement14, | |||
const float & | fElement3, | |||
const float & | fElement7, | |||
const float & | fElement11, | |||
const float & | fElement15 | |||
) | [inline] |
Matrix::Matrix | ( | const Vector & | vecOne, | |
const Vector & | vecTwo, | |||
const Vector & | vecThree, | |||
const Vector & | vecFour = Vector(0.0f,0.0f,0.0f) | |||
) | [inline] |
Matrix::Matrix | ( | const float * | pElements | ) | [inline] |
Matrix::Matrix | ( | const float | vfElements[4][4] | ) | [inline] |
Matrix::Matrix | ( | const Quaternion & | quaRotation | ) | [inline] |
Matrix::~Matrix | ( | ) | [inline] |
void Matrix::clearMatrix | ( | ) | [inline] |
const float& Matrix::Get | ( | const unsigned int | i | ) | const [inline] |
const float& Matrix::Get | ( | const unsigned int | i, | |
const unsigned int | j | |||
) | const [inline] |
const float* Matrix::Get | ( | ) | const [inline] |
const Matrix Matrix::GetInverse | ( | ) | const [inline] |
const Matrix Matrix::GetRotated | ( | const Quaternion & | quaRotation | ) | const [inline] |
const Quaternion Matrix::GetRotation | ( | ) | const [inline] |
const Vector Matrix::GetTranslation | ( | ) | const [inline] |
const Matrix Matrix::GetTransposed | ( | ) | const [inline] |
void Matrix::invert | ( | ) | [inline] |
const bool Matrix::operator!= | ( | const Matrix & | matOther | ) | const [inline] |
const float& Matrix::operator() | ( | const unsigned int | i, | |
const unsigned int | j | |||
) | const [inline] |
float& Matrix::operator() | ( | const unsigned int | i, | |
const unsigned int | j | |||
) | [inline] |
const bool Matrix::operator== | ( | const Matrix & | matOther | ) | const [inline] |
void Matrix::rotate | ( | const Quaternion & | quaRotation | ) | [inline] |
void Matrix::scale | ( | const Vector & | vecScale | ) | [inline] |
void Matrix::Set | ( | const unsigned int | i, | |
const unsigned int | j, | |||
const float & | fValue | |||
) | [inline] |
void Matrix::Set | ( | const float * | pElements | ) | [inline] |
void Matrix::SetColumn | ( | const unsigned int | i, | |
const Vector & | vecVector | |||
) | [inline] |
void Matrix::SetColumn | ( | const unsigned int | i, | |
const float | vfValues[4] | |||
) | [inline] |
void Matrix::SetRow | ( | const unsigned int | i, | |
const Vector & | vecVector | |||
) | [inline] |
void Matrix::SetRow | ( | const unsigned int | i, | |
const float | vfValues[4] | |||
) | [inline] |
void Matrix::SetTranslation | ( | const Vector & | vecTranslation | ) | [inline] |
void Matrix::translate | ( | const Vector & | vecTranslation | ) | [inline] |
void Matrix::transpose | ( | ) | [inline] |
union { ... } Matrix::m_vfElements [private] |
float Matrix::m_vfElements16[16] |
float Matrix::m_vfElements44[4][4] |