Matrix Class Reference

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

Constructor & Destructor Documentation

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

Parameters:
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

Parameters:
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

Parameters:
quaRotation Quaternion
Matrix::~Matrix (  )  [inline]

Destroy the object


Member Function Documentation

void Matrix::clearMatrix (  )  [inline]

Clear the matrix

const float& Matrix::Get ( const unsigned int  i  )  const [inline]

Get the matrix element at a given position

Parameters:
i Index
Returns:
Matrix element
const float& Matrix::Get ( const unsigned int  i,
const unsigned int  j 
) const [inline]

Return the matrix element at a given index

Parameters:
i Column index
j Row index
Returns:
Matrix element at the given index
const float* Matrix::Get (  )  const [inline]

Get the matrix

Returns:
The matirx
const Matrix Matrix::GetInverse (  )  const [inline]

Return the inversed matrix

Returns:
Inversed matrix
const Vector Matrix::GetRotated ( const Vector vecOther  )  const [inline]

Get the rotated vector

Parameters:
vecOther Rotation vector
Returns:
Rotate vector
const Matrix Matrix::GetRotated ( const Quaternion quaRotation  )  const [inline]

Get the rotated matrix

Parameters:
quaRotation Rotate quaternion
Returns:
The rotated matrix
const Quaternion Matrix::GetRotation (  )  const [inline]

Get the rotation

Returns:
The rotation quaternion
const Matrix Matrix::GetScaled ( const Vector vecScale  )  const [inline]

Get the scaled matrix

Parameters:
vecScale Scale vector
Returns:
Scaled matrix
const Matrix Matrix::GetTranslated ( const Vector vecTranslation  )  const [inline]

Get the translated matrix

Parameters:
vecTranslation Translation vector
Returns:
Translated matrix
const Vector Matrix::GetTranslation (  )  const [inline]

Get the translation

Returns:
The translation vector
const Matrix Matrix::GetTransposed (  )  const [inline]

Get the transposed matrix

Returns:
Transposed matrix
void Matrix::invert (  )  [inline]

Invert the matrix

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

Rotate the matrix

Parameters:
quaRotation Rotate quaternion
void Matrix::scale ( const Vector vecScale  )  [inline]

Scale the matrix

Parameters:
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

Parameters:
i Column index
j Row index
void Matrix::Set ( const float *  pElements  )  [inline]

Set the matrix

Parameters:
pElements Values
void Matrix::SetColumn ( const unsigned int  i,
const Vector vecVector 
) [inline]

Set a column of the matrix

Parameters:
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

Parameters:
i Column index
vfValue Values to use
void Matrix::SetRow ( const unsigned int  i,
const Vector vecVector 
) [inline]

Set a row of the matrix

Parameters:
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

Parameters:
i Row index
vfValues Values to set
void Matrix::SetTranslation ( const Vector vecTranslation  )  [inline]

Set the translation

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

Translate the matrix

Parameters:
vecTranslation Vector with the values for the translation
void Matrix::transpose (  )  [inline]

Transpose the matrix


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

Generated on Tue Dec 8 16:10:50 2009 for VisLab by  doxygen 1.6.1