![]() |
Beaming Scene Service
2.0
RakNet wrapper for managing data communications between multiple Beaming clients
|
math helper class for matrix More...
#include <utilMath.h>
Public Member Functions | |
CMatrix (const int bIdentity=true) | |
Constructor (if bIdentity==true, set identity) | |
void | Identity () |
Set identity. | |
CMatrix | operator* (const CMatrix &InM) const |
Concatenate 2 matrices with the * operator. | |
CVec3 | operator* (const CVec3 &Point) const |
Use a matrix to transform a 3D point with the * operator. | |
void | Rotate (float fDegrees, int x, int y, int z) |
Rotate the *this matrix fDegrees counter-clockwise around a single axis( either x=1, y=1, or z=1 ) | |
void | Scale (float sx, float sy, float sz) |
void | Translate (const CVec3 &Test) |
CVec3 | GetTranslate () |
Extract translation vector of matrix. | |
CMatrix | RotationOnly () |
Zero out the translation part of the matrix. | |
void | RotateMatrix (float fDegrees, float x, float y, float z) |
Create a rotation matrix for a counter-clockwise rotation of fDegrees around an arbitrary axis(x, y, z) | |
CMatrix | InvertSimple () |
Simple but not robust matrix inversion. (Doesn't work properly if there is a scaling or skewing transformation.) | |
CMatrix | InvertRot () |
Invert for only a rotation, any translation is zeroed out. | |
void | ToEuler (float *h, float *p, float *r) |
Public Attributes | |
float | mf [16] |
math helper class for matrix
Definition at line 409 of file utilMath.h.
CMatrix::CMatrix | ( | const int | bIdentity = true | ) | [inline] |
Constructor (if bIdentity==true, set identity)
Definition at line 417 of file utilMath.h.
CVec3 CMatrix::GetTranslate | ( | ) | [inline] |
Extract translation vector of matrix.
Definition at line 480 of file utilMath.h.
void CMatrix::Identity | ( | ) | [inline] |
Set identity.
Definition at line 422 of file utilMath.h.
CMatrix CMatrix::InvertRot | ( | ) | [inline] |
Invert for only a rotation, any translation is zeroed out.
Definition at line 537 of file utilMath.h.
CMatrix CMatrix::InvertSimple | ( | ) | [inline] |
Simple but not robust matrix inversion. (Doesn't work properly if there is a scaling or skewing transformation.)
Definition at line 523 of file utilMath.h.
Concatenate 2 matrices with the * operator.
Definition at line 431 of file utilMath.h.
Use a matrix to transform a 3D point with the * operator.
Definition at line 446 of file utilMath.h.
void CMatrix::Rotate | ( | float | fDegrees, |
int | x, | ||
int | y, | ||
int | z | ||
) | [inline] |
Rotate the *this matrix fDegrees counter-clockwise around a single axis( either x=1, y=1, or z=1 )
Definition at line 455 of file utilMath.h.
void CMatrix::RotateMatrix | ( | float | fDegrees, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
Create a rotation matrix for a counter-clockwise rotation of fDegrees around an arbitrary axis(x, y, z)
Definition at line 496 of file utilMath.h.
CMatrix CMatrix::RotationOnly | ( | ) | [inline] |
Zero out the translation part of the matrix.
Definition at line 486 of file utilMath.h.
void CMatrix::Scale | ( | float | sx, |
float | sy, | ||
float | sz | ||
) | [inline] |
Definition at line 464 of file utilMath.h.
void CMatrix::ToEuler | ( | float * | h, |
float * | p, | ||
float * | r | ||
) | [inline] |
Definition at line 547 of file utilMath.h.
void CMatrix::Translate | ( | const CVec3 & | Test | ) | [inline] |
Definition at line 472 of file utilMath.h.
float CMatrix::mf[16] |
Definition at line 413 of file utilMath.h.