#include <Matrix.h>
Public Member Functions | |
Matrix () | |
Matrix (const Matrix &in) | |
~Matrix () | |
void | reset () |
void | loadIdentity () |
void | setRotation (float32 ang, const Vector3f &dir) |
void | rotate (float32 ang, const Vector3f &dir) |
void | lerp (const Matrix &matrix1, const Matrix &matrix2, float32 interValue) |
void | operator= (const Matrix &in) |
Matrix | operator* (const Matrix &in) const |
const char * | toString () |
Public Attributes | |
float32 | m [4][4] |
matrix elements |
math::Matrix::Matrix | ( | ) |
Constructor
math::Matrix::~Matrix | ( | ) |
Destructor
void math::Matrix::reset | ( | ) |
Reset all elements
void math::Matrix::loadIdentity | ( | ) |
Load the identity matrix
void math::Matrix::setRotation | ( | float32 | ang, | |
const Vector3f & | dir | |||
) |
Set the matrix as the rotation matrix of angle given by 'ang' around direction 'dir'
ang | Angle | |
dir | Direction |
void math::Matrix::rotate | ( | float32 | ang, | |
const Vector3f & | dir | |||
) |
Multiply the matrix by another with rotation given by 'ang' around direction 'dir'
and | Angle | |
dir | Direction |
Interpolate between two rotation matrices using quaternions
matrix1 | The first matrix | |
matrix2 | The second matrix | |
interValue | Interpolation value |
void math::Matrix::operator= | ( | const Matrix & | in | ) |
Multiplication operator
in | The matrix reference |
const char* math::Matrix::toString | ( | ) | [inline, virtual] |