GClasses

GClasses::G3DMatrix Class Reference

Represents a 3x3 matrix. More...

#include <G3D.h>

List of all members.

Public Member Functions

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

Public Attributes

G3DVector m_rows [3]

Detailed Description

Represents a 3x3 matrix.


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 ( const G3DVector pVecIn,
G3DVector pVecOut 
) [inline]

pVecOut = this x pVecIn

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

multiplies this by d

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

this = pA x pB

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

serializes this matrix

void GClasses::G3DMatrix::setToIdentity ( ) [inline]

sets this to the identity matrix


Member Data Documentation