Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

amn::IMatrix4x4 Class Reference

4x4 matrix class. More...

#include <IMatrix4x4.h>

List of all members.

Public Member Functions

 IMatrix4x4 ()
 Constructor.
 IMatrix4x4 (IMatrix4x4 &copy)
 Copy constructor.
const float * getMatrixPointer ()
 Returns a pointer to the matrix data.
void loadIdentity ()
 Loads the identity matrix.
void setMatrix (IMatrix4x4 &copy)
 Sets the matrix.
void setMatrix (const float *copy)
 Sets the matrix from a matrix data pointer.
float getElement (unsigned short id)
 Returns the given element.
float operator[] (int id)
 Returns the given element.
IMatrix4x4operator *= (IMatrix4x4 &m)
 Multiplies the matrix by another 4x4 matrix.
IMatrix4x4operator *= (float s)
 Scales the matrix.
IMatrix4x4operator+= (IMatrix4x4 &m)
 Add two matrices.
IMatrix4x4operator-= (IMatrix4x4 &m)
 Subtract two matrices.


Detailed Description

4x4 matrix class.


Constructor & Destructor Documentation

amn::IMatrix4x4::IMatrix4x4  )  [inline]
 

Constructor.

amn::IMatrix4x4::IMatrix4x4 IMatrix4x4 copy  )  [inline]
 

Copy constructor.


Member Function Documentation

float amn::IMatrix4x4::getElement unsigned short  id  )  [inline]
 

Returns the given element.

const float* amn::IMatrix4x4::getMatrixPointer  )  [inline]
 

Returns a pointer to the matrix data.

void amn::IMatrix4x4::loadIdentity  )  [inline]
 

Loads the identity matrix.

IMatrix4x4& amn::IMatrix4x4::operator *= float  s  )  [inline]
 

Scales the matrix.

IMatrix4x4& amn::IMatrix4x4::operator *= IMatrix4x4 m  )  [inline]
 

Multiplies the matrix by another 4x4 matrix.

IMatrix4x4& amn::IMatrix4x4::operator+= IMatrix4x4 m  )  [inline]
 

Add two matrices.

IMatrix4x4& amn::IMatrix4x4::operator-= IMatrix4x4 m  )  [inline]
 

Subtract two matrices.

float amn::IMatrix4x4::operator[] int  id  )  [inline]
 

Returns the given element.

void amn::IMatrix4x4::setMatrix const float *  copy  )  [inline]
 

Sets the matrix from a matrix data pointer.

void amn::IMatrix4x4::setMatrix IMatrix4x4 copy  )  [inline]
 

Sets the matrix.


The documentation for this class was generated from the following file:
Generated on Wed Feb 1 22:23:26 2006 for AmnesiaEngine by  doxygen 1.4.2