Right-multiplies this matrix by the matrix m and stores the result into this matrix: this = this . m
SIMatrix4.MulInPlace( SIMatrix4 in_pMatrix ); |
SIMatrix4.MulInPlace(); |
/*
This example demonstrates how to multiply one 4x4 matrix by
another and then save the product in the first matrix.
*/
var m1 = XSIMath.CreateMatrix4(
1.0, 0.0, 0.0, 0.0,
0.0, 2.0, 0.0, 0.0,
0.0, 0.0, 3.0, 0.0,
0.0, 0.0, 0.0, 1.0
);
var m2 = XSIMath.CreateMatrix4(
4.0, 0.0, 0.0, 0.0,
0.0, 3.0, 0.0, 0.0,
0.0, 0.0, 2.0, 0.0,
0.0, 0.0, 0.0, 1.0
);
m1.MulInPlace(m2);
|