TransposeInverse (SIMatrix4)

Description

Sets this matrix to the transpose of the inverse of the input matrix m (if not singular): this = Transpose(m^-1)

Scripting Syntax

    SIMatrix4.TransposeInverse( m )

C# Syntax

    Int32 SIMatrix4.TransposeInverse( SIMatrix4 in_pMatrix );

Parameters

Parameter | Type | Description
m | SIMatrix4 | Matrix operand

Return Value

Boolean True if the matrix m has been inverted (not singular); otherwise False.

Examples

JScript Example

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

See Also

SIMatrix4.TransposeInverseInPlace | SIVector3 | SIMatrix3 | SIMatrix4
SIRotation | SITransformation | SIQuaternion |

Autodesk Softimage v7.5