MarSTDv2004: CMatrix3 Class Reference

MarSTDv2004

CMatrix3 Class Reference

List of all members.

Public Member Functions

void makeIdentity ()
 Creates the identity matrix. Multiplying a vector by the identity matrix results in the same vector.
void transpose ()
 Transpose matrix. Swaps rows / columns.
void makeXRotation (float r)
 Create a rotation around the X axis. r is given in radians.
void makeYRotation (float r)
 Create a rotation around the Y axis. r is given in radians.
void makeZRotation (float r)
 Create a rotation around the Z axis. r is given in radians.
void makeRotation (float x, float y, float z)
 Create a rotation around the X, Y and Z axis. All rotations are given in radians. The will rotate about the X axis first, then Y axis and finally the Z axis.
void makeScaling (float x, float y, float z)
 Creates a scaling matrix.
void mul (float x, float y, float z, float *xout, float *yout, float *zout)
 Multiplies a 3D point with this matrix and stores the result in xout, yout and zout.
CVector mul (CVector &vector, CVector &out)
 Multiplies a vector by this matrix, storing the result in out.
void mul (CMatrix3 &matrix)
 Multiplies this matrix bu matrix. This had the effect of concatenating transformations.
float determinant ()
 Calculate the determinant.
void invert ()
 Calculate the inverse matrix and replace the current matrix with it.
float & operator() (int x, int y)
 Return a value at location (x, y).
CVector operator * (CVector &vector)
 Multiply by vector.
CMatrix3operator *= (CMatrix3 &matrix)
 Multiply by matrix. Eg. Matrix3 final = matrix1 * matrix2 * matrix3;.

Public Attributes

float v [9]
 3x3 matrix data.

The documentation for this class was generated from the following file:
Generated on Tue Feb 8 21:59:41 2005 for MarSTDv2004 by  doxygen 1.4.1