この行列を、入力行列 m の転置逆行列に設定します(特異行列でない場合)(this = Transpose(m^-1))。
Int32 SIMatrix4.TransposeInverse( SIMatrix4 in_pMatrix ); |
oBoolean = SIMatrix4.TransposeInverse( m ); |
Boolean。行列 m が逆行列を持つ(特異でない)場合は True、逆行列を持たない場合は false。
| パラメータ | タイプ | 説明 |
|---|---|---|
| m | SIMatrix4 | 行列オペランド |
/*
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 |