Garry's Mod Wiki

VMatrix:Invert

  boolean VMatrix:Invert()

Description

Inverts the matrix.

Inverting the matrix will fail if its determinant is 0 or close to 0. (ie. its "scale" in any direction is 0.)

If the matrix cannot be inverted, it does not get modified.

See also VMatrix:InvertTR.

Returns

1 boolean
Whether the matrix was inverted or not