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 |
Matrix::Matrix | ( | ) | [inline] |
Construct a new empty matrix
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] |
Constructs a new matrix fElement0 Element at position 0 fElement4 Element at position 4 fElement8 Element at position 8 fElement12 Element at position 12 fElement1 Element at position 1 fElement5 Element at position 5 fElement9 Element at position 9 fElement13 Element at position 13 fElement2 Element at position 2 fElement6 Element at position 6 fElement10 Element at position 10 fElement14 Element at position 14 fElement3 Element at position 3 fElement7 Element at position 7 fElement11 Element at position 11 fElement15 Element at position 15
Matrix::Matrix | ( | const Vector & | vecOne, | |
const Vector & | vecTwo, | |||
const Vector & | vecThree, | |||
const Vector & | vecFour = Vector(0.0f,0.0f,0.0f) | |||
) | [inline] |
Construct a new matrix of vectors
vecOne | First vector column | |
vecTwo | Second vector column | |
vecThree | Third vector column | |
vecFour | Fourth vector column |
Matrix::Matrix | ( | const float * | pElements | ) | [inline] |
Construct a new matrix object of an array
pElements | Pointer to the values |
Matrix::Matrix | ( | const float | vfElements[4][4] | ) | [inline] |
Construct a new matrix opbject vfElements Values to use
Matrix::Matrix | ( | const Quaternion & | quaRotation | ) | [inline] |
Construct a new matrix object of a quaternion
quaRotation | Quaternion |
Matrix::~Matrix | ( | ) | [inline] |
Destroy the object
void Matrix::clearMatrix | ( | ) | [inline] |
Clear the matrix
const float& Matrix::Get | ( | const unsigned int | i | ) | const [inline] |
const float& Matrix::Get | ( | const unsigned int | i, | |
const unsigned int | j | |||
) | const [inline] |
Return the matrix element at a given index
i | Column index | |
j | Row index |
const float* Matrix::Get | ( | ) | const [inline] |
Get the matrix
const Matrix Matrix::GetInverse | ( | ) | const [inline] |
Return the inversed matrix
Get the rotated vector
vecOther | Rotation vector |
const Matrix Matrix::GetRotated | ( | const Quaternion & | quaRotation | ) | const [inline] |
Get the rotated matrix
quaRotation | Rotate quaternion |
const Quaternion Matrix::GetRotation | ( | ) | const [inline] |
Get the rotation
Get the scaled matrix
vecScale | Scale vector |
Get the translated matrix
vecTranslation | Translation vector |
const Vector Matrix::GetTranslation | ( | ) | const [inline] |
Get the translation
const Matrix Matrix::GetTransposed | ( | ) | const [inline] |
Get the transposed matrix
void Matrix::invert | ( | ) | [inline] |
Invert the matrix
void Matrix::rotate | ( | const Quaternion & | quaRotation | ) | [inline] |
Rotate the matrix
quaRotation | Rotate quaternion |
void Matrix::scale | ( | const Vector & | vecScale | ) | [inline] |
Scale the matrix
vecScale | Scale vector |
void Matrix::Set | ( | const unsigned int | i, | |
const unsigned int | j, | |||
const float & | fValue | |||
) | [inline] |
Set the matrix element at a given index
i | Column index | |
j | Row index |
void Matrix::Set | ( | const float * | pElements | ) | [inline] |
Set the matrix
pElements | Values |
void Matrix::SetColumn | ( | const unsigned int | i, | |
const Vector & | vecVector | |||
) | [inline] |
Set a column of the matrix
i | Column index | |
vecVector | Values to use in a vector |
void Matrix::SetColumn | ( | const unsigned int | i, | |
const float | vfValues[4] | |||
) | [inline] |
Set a column of the matrix
i | Column index | |
vfValue | Values to use |
void Matrix::SetRow | ( | const unsigned int | i, | |
const Vector & | vecVector | |||
) | [inline] |
Set a row of the matrix
i | Row index | |
vecVector | Values in a vector |
void Matrix::SetRow | ( | const unsigned int | i, | |
const float | vfValues[4] | |||
) | [inline] |
Set a row of the matrix
i | Row index | |
vfValues | Values to set |
void Matrix::SetTranslation | ( | const Vector & | vecTranslation | ) | [inline] |
Set the translation
vecTranslation | Translation vector |
void Matrix::translate | ( | const Vector & | vecTranslation | ) | [inline] |
Translate the matrix
vecTranslation | Vector with the values for the translation |
void Matrix::transpose | ( | ) | [inline] |
Transpose the matrix