MatrixTranslation

Top  Previous  Next

Syntax:

 

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

 

Purpose:

Applies the specified offsets to a matrix.

 

Parameters:
mat - Matrix to apply the translation to.

x, y, z - Coordinate offsets.

 

Returned value:

None.

 

Application:

MATRIX4 mat
MatrixIdentity(mat)
MatrixTranslation(mat, 25.0, 10.0, -2)