SIMatrix3.Invert

Description

Inverts the matrix m and stores the result in this matrix: this = m^-1

C# Syntax

Int32 SIMatrix3.Invert( SIMatrix3 in_pMatrix );

Scripting Syntax

oBoolean = SIMatrix3.Invert( m );

Return Value

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

Parameters

Parameter Type Description
m SIMatrix3 Matrix operand

Examples

VBScript Example

dim m1, m2
' Create 3x3 matrices.
set m1 = XSIMath.CreateMatrix3(2.0, 3.0, 0.0, 1.0, 4.0, 0.0, 0.0, 0.0, 1.0)
set m2 = XSIMath.CreateMatrix3
if m2.Invert( m1 ) then
'do something
else
'do another thing
end if

See Also

SIMatrix3.InvertInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion