Sets this matrix to the transpose of the inverse of the input matrix m (if not singular): this = Transpose(m^-1)
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 |