Click or drag to resize
DigitalRuneMatrix33DTryInvert Method
Inverts the matrix if it is invertible.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public bool TryInvert()

Return Value

Type: Boolean
if the matrix is invertible; otherwise .
Remarks

This method is the equivalent to Invert, except that no exceptions are thrown. The return value indicates whether the operation was successful.

Due to numerical errors it can happen that some singular matrices are not recognized as singular by this method. This method is optimized for fast matrix inversion and not for safe detection of singular matrices. If you need to detect if a matrix is singular, you can, for example, compute its Determinant and see if it is near zero.

See Also