MercuryMatrix Class Reference

General Purpose 4x4 row-major matrix. More...

#include <MercuryMatrix.h>

List of all members.

Public Member Functions

 MercuryMatrix ()
 MercuryMatrix (const MercuryMatrix &m)
float * operator[] (unsigned int i)
const float * operator[] (unsigned int i) const
 Allow typecasting to float * for use in APIs.
const MercuryMatrixoperator= (const MercuryMatrix &m)
const MercuryMatrixoperator= (const float *m)
float * Ptr ()
const float * Ptr () const
MercuryMatrix operator * (const MercuryMatrix &m) const
MercuryMatrixoperator *= (const MercuryMatrix &m)
void Translate (float x, float y, float z)
void RotateXYZ (float x, float y, float z)
 Rotate along the 3 primariy axes by given amounts (in deg).
void RotateAngAxis (float fAngle, float x, float y, float z)
 Rotate a given amount (fAngle) in degrees around pAxis.
void Scale (float x, float y, float z)
void Transotale (float tX, float tY, float tZ, float rX, float rY, float rZ, float sX, float sY, float sZ)
void Transpose ()
void Zero ()
void Identity ()

Private Attributes

float m_matrix [4][4]
 [row][column] (The internal matrix)


Detailed Description

General Purpose 4x4 row-major matrix.

Definition at line 14 of file MercuryMatrix.h.


Constructor & Destructor Documentation

MercuryMatrix::MercuryMatrix (  ) 

Definition at line 6 of file MercuryMatrix.cpp.

MercuryMatrix::MercuryMatrix ( const MercuryMatrix m  )  [inline]

Definition at line 21 of file MercuryMatrix.h.


Member Function Documentation

float* MercuryMatrix::operator[] ( unsigned int  i  )  [inline]

Definition at line 22 of file MercuryMatrix.h.

const float* MercuryMatrix::operator[] ( unsigned int  i  )  const [inline]

Allow typecasting to float * for use in APIs.

Definition at line 24 of file MercuryMatrix.h.

const MercuryMatrix & MercuryMatrix::operator= ( const MercuryMatrix m  ) 

Definition at line 11 of file MercuryMatrix.cpp.

const MercuryMatrix & MercuryMatrix::operator= ( const float *  m  ) 

Definition at line 17 of file MercuryMatrix.cpp.

float* MercuryMatrix::Ptr (  )  [inline]

Definition at line 27 of file MercuryMatrix.h.

const float* MercuryMatrix::Ptr (  )  const [inline]

Definition at line 28 of file MercuryMatrix.h.

MercuryMatrix MercuryMatrix::operator * ( const MercuryMatrix m  )  const

Definition at line 200 of file MercuryMatrix.cpp.

MercuryMatrix & MercuryMatrix::operator *= ( const MercuryMatrix m  ) 

Definition at line 207 of file MercuryMatrix.cpp.

void MercuryMatrix::Translate ( float  x,
float  y,
float  z 
)

Definition at line 69 of file MercuryMatrix.cpp.

void MercuryMatrix::RotateXYZ ( float  x,
float  y,
float  z 
)

Rotate along the 3 primariy axes by given amounts (in deg).

Definition at line 78 of file MercuryMatrix.cpp.

void MercuryMatrix::RotateAngAxis ( float  fAngle,
float  x,
float  y,
float  z 
)

Rotate a given amount (fAngle) in degrees around pAxis.

Definition at line 118 of file MercuryMatrix.cpp.

void MercuryMatrix::Scale ( float  x,
float  y,
float  z 
)

Definition at line 189 of file MercuryMatrix.cpp.

void MercuryMatrix::Transotale ( float  tX,
float  tY,
float  tZ,
float  rX,
float  rY,
float  rZ,
float  sX,
float  sY,
float  sZ 
)

Definition at line 148 of file MercuryMatrix.cpp.

void MercuryMatrix::Transpose (  )  [inline]

Definition at line 40 of file MercuryMatrix.h.

void MercuryMatrix::Zero (  ) 

Definition at line 23 of file MercuryMatrix.cpp.

void MercuryMatrix::Identity (  ) 

Definition at line 46 of file MercuryMatrix.cpp.


Member Data Documentation

float MercuryMatrix::m_matrix[4][4] [private]

[row][column] (The internal matrix)

Definition at line 18 of file MercuryMatrix.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo