VMatrix:GetInverse

From Garry's Mod
Jump to: navigation, search
 VMatrix:GetInverse( )

Description

Returns an inverted matrix without modifying the original matrix.

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

See also VMatrix:GetInverseTR.

Returns

VMatrix

The inverted matrix if possible, nil otherwise
Personal tools
Navigation