MatrixMultiply

Top  Previous  Next

Syntax:

 

MatrixMultiply(MATRIX4 out, MATRIX4 m1, MATRIX4 m2)

 

Purpose:

Determines the product of two matrices.

 

Parameters:

out - Matrix to copy the result to.

m1 - First matrix

m2 - Second matrix

 

Returned value:

None.

 

Application:

MATRIX4 matpos, matrot, matresult
MatrixIdentity(matpos)
MatrixIdentity(matrot)
MatrixTranslation(matpos, 25.0, 10.0, -2)
MatrixRotation(matrot, 90 * 0.01745, 0, 0)
MatrixMultiply(matresult, matpos, matrot)

 

Additional Info:

MatrixMultiply is used to combine the transformations of separate matrices into a resultant matrix.