#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] |
References m_vfElements.
Referenced by GetRotated(), GetScaled(), GetTranslated(), GetTransposed(), and operator*().
| 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] |
References m_vfElements.
| Matrix::Matrix | ( | const Vector & | vecOne, | |
| const Vector & | vecTwo, | |||
| const Vector & | vecThree, | |||
| const Vector & | vecFour = Vector(0.0f,0.0f,0.0f) | |||
| ) | [inline] |
References Vector::GetX(), Vector::GetY(), Vector::GetZ(), and m_vfElements.
| Matrix::Matrix | ( | const float * | pElements | ) | [inline] |
References m_vfElements.
| Matrix::Matrix | ( | const float | vfElements[4][4] | ) | [inline] |
References m_vfElements.
| Matrix::Matrix | ( | const Quaternion & | quaRotation | ) | [inline] |
References m_vfElements, and rotate().
| Matrix::~Matrix | ( | ) | [inline] |
| void Matrix::clearMatrix | ( | ) | [inline] |
References m_vfElements.
| const float& Matrix::Get | ( | const unsigned int | i | ) | const [inline] |
References m_vfElements.
| const float& Matrix::Get | ( | const unsigned int | i, | |
| const unsigned int | j | |||
| ) | const [inline] |
References m_vfElements.
| const float* Matrix::Get | ( | ) | const [inline] |
| const Matrix Matrix::GetInverse | ( | ) | const [inline] |
References Vector::GetX(), Vector::GetY(), Vector::GetZ(), and m_vfElements.
| const Matrix Matrix::GetRotated | ( | const Quaternion & | quaRotation | ) | const [inline] |
References Quaternion::GetScalar(), Quaternion::GetVector(), Vector::GetX(), Vector::GetY(), Vector::GetZ(), and Matrix().
Referenced by rotate().
| const Quaternion Matrix::GetRotation | ( | ) | const [inline] |
References m_vfElements.
| const Vector Matrix::GetTranslation | ( | ) | const [inline] |
References m_vfElements.
| const Matrix Matrix::GetTransposed | ( | ) | const [inline] |
| void Matrix::invert | ( | ) | [inline] |
References GetInverse().
| const bool Matrix::operator!= | ( | const Matrix & | matOther | ) | const [inline] |
| const float& Matrix::operator() | ( | const unsigned int | i, | |
| const unsigned int | j | |||
| ) | const [inline] |
References m_vfElements.
| float& Matrix::operator() | ( | const unsigned int | i, | |
| const unsigned int | j | |||
| ) | [inline] |
References m_vfElements.
References Vector::GetX(), Vector::GetY(), Vector::GetZ(), and m_vfElements.
References m_vfElements, m_vfElements16, and Matrix().
| const bool Matrix::operator== | ( | const Matrix & | matOther | ) | const [inline] |
References m_vfElements, and m_vfElements16.
| void Matrix::rotate | ( | const Quaternion & | quaRotation | ) | [inline] |
| void Matrix::scale | ( | const Vector & | vecScale | ) | [inline] |
References GetScaled().
| void Matrix::Set | ( | const unsigned int | i, | |
| const unsigned int | j, | |||
| const float & | fValue | |||
| ) | [inline] |
References m_vfElements.
| void Matrix::Set | ( | const float * | pElements | ) | [inline] |
| void Matrix::SetColumn | ( | const unsigned int | i, | |
| const Vector & | vecVector | |||
| ) | [inline] |
References Vector::GetX(), Vector::GetY(), Vector::GetZ(), and m_vfElements.
| void Matrix::SetColumn | ( | const unsigned int | i, | |
| const float | vfValues[4] | |||
| ) | [inline] |
References m_vfElements.
| void Matrix::SetRow | ( | const unsigned int | i, | |
| const Vector & | vecVector | |||
| ) | [inline] |
References Vector::GetX(), Vector::GetY(), Vector::GetZ(), and m_vfElements.
| void Matrix::SetRow | ( | const unsigned int | i, | |
| const float | vfValues[4] | |||
| ) | [inline] |
References m_vfElements.
| void Matrix::SetTranslation | ( | const Vector & | vecTranslation | ) | [inline] |
References Vector::GetX(), Vector::GetY(), Vector::GetZ(), and m_vfElements.
| void Matrix::translate | ( | const Vector & | vecTranslation | ) | [inline] |
References GetTranslated().
| void Matrix::transpose | ( | ) | [inline] |
References GetTransposed().
union { ... } Matrix::m_vfElements [private] |
Referenced by clearMatrix(), Get(), GetInverse(), GetRotated(), GetRotation(), GetTranslation(), GetTransposed(), Matrix(), operator()(), operator*(), operator==(), Set(), SetColumn(), SetRow(), and SetTranslation().
| float Matrix::m_vfElements16[16] |
Referenced by operator*(), and operator==().
| float Matrix::m_vfElements44[4][4] |
Referenced by GetInverse().
1.5.8