GClasses
GClasses::G3DMatrix Class Reference

Detailed Description

Represents a 3x3 matrix.

#include <G3D.h>

Public Member Functions

void copy (G3DMatrix *pThat)
 copies pThat More...
 
void deserialize (GDomNode *pNode)
 deserializes this matrix More...
 
double dotColumn (const G3DVector *pVec, int column) const
 Computes the dot-product of pVec with the specified column of this matrix. More...
 
void makeAxisRotationMatrix (int axis, double radians)
 Creates a matrix for rotating about the specified axis. More...
 
void makeRandom (GRand *pRand)
 Creates a matrix comprised of a random set of orthonormal basis vectors. More...
 
void multiply (double d)
 multiplies this by d More...
 
void multiply (const G3DVector *pVecIn, G3DVector *pVecOut)
 pVecOut = this x pVecIn More...
 
void multiply (const G3DMatrix *pA, const G3DMatrix *pB)
 this = pA x pB More...
 
GDomNodeserialize (GDom *pDoc) const
 serializes this matrix More...
 
void setToIdentity ()
 sets this to the identity matrix More...
 

Public Attributes

G3DVector m_rows [3]
 

Member Function Documentation

void GClasses::G3DMatrix::copy ( G3DMatrix pThat)
inline

copies pThat

void GClasses::G3DMatrix::deserialize ( GDomNode pNode)

deserializes this matrix

double GClasses::G3DMatrix::dotColumn ( const G3DVector pVec,
int  column 
) const
inline

Computes the dot-product of pVec with the specified column of this matrix.

void GClasses::G3DMatrix::makeAxisRotationMatrix ( int  axis,
double  radians 
)

Creates a matrix for rotating about the specified axis.

void GClasses::G3DMatrix::makeRandom ( GRand pRand)

Creates a matrix comprised of a random set of orthonormal basis vectors.

void GClasses::G3DMatrix::multiply ( double  d)
inline

multiplies this by d

void GClasses::G3DMatrix::multiply ( const G3DVector pVecIn,
G3DVector pVecOut 
)
inline

pVecOut = this x pVecIn

void GClasses::G3DMatrix::multiply ( const G3DMatrix pA,
const G3DMatrix pB 
)
inline

this = pA x pB

GDomNode* GClasses::G3DMatrix::serialize ( GDom pDoc) const

serializes this matrix

void GClasses::G3DMatrix::setToIdentity ( )
inline

sets this to the identity matrix

Member Data Documentation

G3DVector GClasses::G3DMatrix::m_rows[3]