この行列に行列 m を右から掛け、結果をこの行列に格納します(this = this . m)。
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);
|