Matrix4< T, FLOATTYPE > Class Template Reference
[Math]

4X4 matrix; loops are unrolled for performance. More...

#include <Matrix.h>

Inheritance diagram for Matrix4< T, FLOATTYPE >:
IMemoryValidate

List of all members.

Public Member Functions

 Matrix4 (const Matrix4 &m)
 Matrix4 (Vector4< T, FLOATTYPE > *right, Vector4< T, FLOATTYPE > *up, Vector4< T, FLOATTYPE > *forward)
void Shift (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
void Scale (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
void Scale (FLOATTYPE d)
void Rotate (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
void ScaleSelf (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
void ScaleSelf (FLOATTYPE d)
void RotateSelf (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
void Transform (Matrix4< T, FLOATTYPE > *n)
 transforms this matrix by matrix n from left (this=n x this)
void PreTransform (Matrix4< T, FLOATTYPE > *n)
 Transforms this matrix by matrix n from right (this=this x n).
void MultEqual (Matrix4< T, FLOATTYPE > *m2)
Matrix4< T, FLOATTYPE > Inverse ()
 Returns the inverse of this matrix.
void SetIdentity ()
 Resets the matrix.
Matrix4 & operator= (const Matrix4 &m)
virtual void ValidateMem () const
virtual void CheckMem () const

Static Public Member Functions

static Matrix4< T, FLOATTYPE > ShiftMatrix (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
 Matrix for shifting.
static Matrix4< T, FLOATTYPE > ScaleMatrix (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
 Matrix for scaling.
static Matrix4< T, FLOATTYPE > ScaleMatrix (FLOATTYPE d)
 matrix for scaling
static Matrix4< T, FLOATTYPE > RotateMatrix (FLOATTYPE dx, FLOATTYPE dy, FLOATTYPE dz)
 matrix for rotation
static Matrix4< T, FLOATTYPE > Multiply (Matrix4< T, FLOATTYPE > *m1, Matrix4< T, FLOATTYPE > *m2)
 Returns m1 x m2.

Protected Attributes

T m00
T m01
T m02
T m03
T m10
T m11
T m12
T m13
T m20
T m21
T m22
T m23
T m30
T m31
T m32
T m33

Friends

template Vector4< typename T, typename FLOATTYPE >

Detailed Description

template<typename T, typename FLOATTYPE>
class Matrix4< T, FLOATTYPE >

4X4 matrix; loops are unrolled for performance.

Definition at line 300 of file Matrix.h.


The documentation for this class was generated from the following file: