#include <Matrix4.h>
LayerSceneGraph::Matrix4::Matrix4 |
( |
| ) |
|
Default constructor. Instances a identity matrix.
LayerSceneGraph::Matrix4::Matrix4 |
( |
GLfloat * |
v | ) |
|
Instances a matrix with values given by the parameter.
LayerSceneGraph::Matrix4::Matrix4 |
( |
const Matrix4 * |
copy | ) |
|
LayerSceneGraph::Matrix4::~Matrix4 |
( |
| ) |
|
|
virtual |
GLfloat * LayerSceneGraph::Matrix4::getValues |
( |
| ) |
|
Returns a float pointer with the 16 values of this matrix
Canonical multiplication of matrices
Matrix4 LayerSceneGraph::Matrix4::operator* |
( |
GLfloat |
n | ) |
|
This method multiplies this matrix for a given float number. Each value in the matrix is multiplied by the float number.
This method adds elements of this matrix with elements of another given matrix in equivalent positions
This method subtracts elements of this matrix with elements of another given matrix in equivalent positions
GLfloat LayerSceneGraph::Matrix4::operator[] |
( |
int |
i | ) |
|
Returns the value in "i" position inside the matrix. The matrix is column packed so Matrix[5] is equivalent to matrix[1][0].
void LayerSceneGraph::Matrix4::rotate |
( |
GLfloat |
alpha, |
|
|
GLfloat |
beta, |
|
|
GLfloat |
gamma |
|
) |
| |
void LayerSceneGraph::Matrix4::scale |
( |
GLfloat |
x, |
|
|
GLfloat |
y, |
|
|
GLfloat |
z |
|
) |
| |
void LayerSceneGraph::Matrix4::setValues |
( |
GLfloat * |
v | ) |
|
void LayerSceneGraph::Matrix4::translate |
( |
GLfloat |
x, |
|
|
GLfloat |
y, |
|
|
GLfloat |
z |
|
) |
| |
GLfloat* LayerSceneGraph::Matrix4::values |
|
private |
The documentation for this class was generated from the following files: