GClasses
|
Represents a 3x3 matrix. More...
#include <G3D.h>
Public Member Functions | |
GDomNode * | serialize (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] |
Represents a 3x3 matrix.
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.
pVecOut = this x pVecIn
void GClasses::G3DMatrix::multiply | ( | double | d | ) | [inline] |
multiplies this by d
this = pA x pB
void GClasses::G3DMatrix::setToIdentity | ( | ) | [inline] |
sets this to the identity matrix