MatrixRotation

Top  Previous  Next

Syntax:

 

MatrixRotation(MATRIX4 mat, FLOAT  x, FLOAT  y, FLOAT  z)

 

Purpose:

Applies the specified rotations to the matrix.

 

Parameters:

mat - Matrix to apply rotations to.

x, y, z - The rotation angles, in radians.

 

Returned value:

None.

 

Application:

MATRIX4 mat
MatrixIdentity(mat)
MatrixTranslation(mat, 25.0, 10.0, -2)
MatrixRotation(mat, 90 * 0.01745, 0, 0)