SIMatrix4.MulInPlace
 
 
 

SIMatrix4.MulInPlace

Description

Right-multiplies this matrix by the matrix m and stores the result into this matrix: this = this . m

C# Syntax

SIMatrix4.MulInPlace( SIMatrix4 in_pMatrix );

Scripting Syntax

SIMatrix4.MulInPlace();

Examples

JScript Example

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

See Also

SIMatrix4.Mul SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion