Common methods

The most common method is :

void setMatrix(const Matrix44& newObjectToWorldMatrix);

the matrix is given in homogeneous coordinates; therefore it is 4x4. This method is available for Objects (primitives, csg or mesh), Camera, and Lights.

The matrix must be a composition of rotation, translation and scaling matrices. Other matrices may lead to unpredictable results...

 

The Matrix44 class is not documented here, because you should use the MatrixBuilder or the MatrixHelper for a more convenient usage.

Nonetheless, a simple example is :

Matrix44 myMatrix(1,0,0,1, 0,1,1,0, 0,0,1,0, 0,0,0,1); //coefficients are given in line

constructs the matrix :

1
0
0
1
0
1
1
0
0
0
1
0
0
0
0
1