Sets this matrix to the transpose of the inverse of the input matrix m (if not singular): this = Transpose(m^-1)
Int32 SIMatrix4.TransposeInverse( SIMatrix4 in_pMatrix ); |
oBoolean = SIMatrix4.TransposeInverse( m ); |
Boolean True if the matrix m has been inverted (not singular); otherwise False.
| Parameter | Type | Description |
|---|---|---|
| m | SIMatrix4 | Matrix operand |
/*
This example demonstrates how to set up a 4x4 matrix,
invert and transpose it and then trap whether the
operation was successful
*/
var m1 = XSIMath.CreateMatrix4(
2.0, 3.0, 0.0, 0.0,
1.0, 4.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0
);
var m2 = XSIMath.CreateMatrix4();
if ( m2.TransposeInverse(m1) ) {
Application.LogMessage("Success :-D");
} else {
Application.LogMessage("Failure :-(");
}
// Expected result:
// INFO : Success :-D
|
SIMatrix4.TransposeInverseInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion