#include <TransformMatrix.h>
Public Types | |
| enum | { MATRIX_DIM = 4 } |
| Dimension of internal matrix. More... | |
| typedef float | TTransformMatrix [MATRIX_DIM][MATRIX_DIM] |
| Type of internal matrix. | |
Public Member Functions | |
| TransformMatrix () | |
| Create matrix of identity. | |
| void | rotate (float angle, SpatialVector vect) |
| Transformation: rotation. | |
| void | translate (SpatialVector vect) |
| Transformation: translation. | |
| void | scale (SpatialVector vect) |
| Transformation: scale. | |
| void | shear (SpatialVector) |
| This method is not implemented. | |
| Vertex | transform (Vertex vertex) |
| Perform transformation on given vertex. | |
Static Public Member Functions | |
| static void | setIdentity (TTransformMatrix dest) |
| Reset transformation to identity. | |
| static void | copyMatrix (TTransformMatrix dest, TTransformMatrix src) |
| Copy internal matrix. | |
| static void | mulMatrix (TTransformMatrix dest, TTransformMatrix a, TTransformMatrix b) |
| Matrix multiplication. | |
Definition at line 66 of file TransformMatrix.h.
| typedef float TransformMatrix::TTransformMatrix[MATRIX_DIM][MATRIX_DIM] |
| anonymous enum |
| TransformMatrix::TransformMatrix | ( | ) |
Create matrix of identity.
| static void TransformMatrix::setIdentity | ( | TTransformMatrix | dest | ) | [static] |
Reset transformation to identity.
| static void TransformMatrix::copyMatrix | ( | TTransformMatrix | dest, | |
| TTransformMatrix | src | |||
| ) | [static] |
Copy internal matrix.
| dest | Destination matrix. | |
| src | Source matrix. |
| static void TransformMatrix::mulMatrix | ( | TTransformMatrix | dest, | |
| TTransformMatrix | a, | |||
| TTransformMatrix | b | |||
| ) | [static] |
Matrix multiplication.
| dest | Destination matrix (will be overwriten). | |
| a | Matrix a. | |
| b | Matrix b. |
| void TransformMatrix::rotate | ( | float | angle, | |
| SpatialVector | vect | |||
| ) |
Transformation: rotation.
| angle | Angle of rotation. | |
| vect | Spatial vector to rotate around. |
| void TransformMatrix::translate | ( | SpatialVector | vect | ) |
Transformation: translation.
| vect | Vector of translation. |
| void TransformMatrix::scale | ( | SpatialVector | vect | ) |
Transformation: scale.
| vect | Scale vector. |
| void TransformMatrix::shear | ( | SpatialVector | ) |
Perform transformation on given vertex.
| vertex | Original vertex. |
1.5.2