Matrix Class Reference

#include <Matrix.h>

List of all members.

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 Matrixoperator*= (const Matrix &matOther)
const Vector operator* (const Vector &vecOther) const

Private Attributes

union {
   float   m_vfElements16 [16]
   float   m_vfElements44 [4][4]
m_vfElements


Constructor & Destructor Documentation

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]

Here is the call graph for this function:

Matrix::Matrix ( const float *  pElements  )  [inline]

Matrix::Matrix ( const float  vfElements[4][4]  )  [inline]

Matrix::Matrix ( const Quaternion quaRotation  )  [inline]

Here is the call graph for this function:

Matrix::~Matrix (  )  [inline]


Member Function Documentation

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 Vector Matrix::GetRotated ( const Vector vecOther  )  const [inline]

Here is the call graph for this function:

const Matrix Matrix::GetRotated ( const Quaternion quaRotation  )  const [inline]

Here is the call graph for this function:

const Quaternion Matrix::GetRotation (  )  const [inline]

const Matrix Matrix::GetScaled ( const Vector vecScale  )  const [inline]

Here is the call graph for this function:

const Matrix Matrix::GetTranslated ( const Vector vecTranslation  )  const [inline]

Here is the call graph for this function:

const Vector Matrix::GetTranslation (  )  const [inline]

const Matrix Matrix::GetTransposed (  )  const [inline]

Here is the call graph for this function:

void Matrix::invert (  )  [inline]

Here is the call graph for this function:

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 Vector Matrix::operator* ( const Vector vecOther  )  const [inline]

Here is the call graph for this function:

const Matrix Matrix::operator* ( const Matrix matOther  )  const [inline]

Here is the call graph for this function:

const Matrix& Matrix::operator*= ( const Matrix matOther  )  [inline]

const bool Matrix::operator== ( const Matrix matOther  )  const [inline]

void Matrix::rotate ( const Quaternion quaRotation  )  [inline]

Here is the call graph for this function:

void Matrix::scale ( const Vector vecScale  )  [inline]

Here is the call graph for this function:

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]

Here is the call graph for this function:

void Matrix::SetColumn ( const unsigned int  i,
const float  vfValues[4] 
) [inline]

void Matrix::SetRow ( const unsigned int  i,
const Vector vecVector 
) [inline]

Here is the call graph for this function:

void Matrix::SetRow ( const unsigned int  i,
const float  vfValues[4] 
) [inline]

void Matrix::SetTranslation ( const Vector vecTranslation  )  [inline]

Here is the call graph for this function:

void Matrix::translate ( const Vector vecTranslation  )  [inline]

Here is the call graph for this function:

void Matrix::transpose (  )  [inline]

Here is the call graph for this function:


Member Data Documentation

union { ... } Matrix::m_vfElements [private]


The documentation for this class was generated from the following file:

Generated on Wed Dec 10 13:35:11 2008 for VisLu by  doxygen 1.5.7.1