SIMatrix4.MulInPlace

説明

この行列に行列 m を右から掛け、結果をこの行列に格納します(this = this . m)。 m)

C#構文

SIMatrix4.MulInPlace( SIMatrix4 in_pMatrix );

スクリプト構文

SIMatrix4.MulInPlace();

JScript の例

/*

	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);

関連項目

SIMatrix4.Mul SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion