get_inverse


Description:

public Bool get_inverse (out Matrix inverse)

Gets the inverse transform of the current matrix and uses it to initialize a new Matrix.

Parameters:

this

A MatrixStack

inverse

The destination for a 4x4 inverse transformation matrix

Returns:

true if the inverse was successfully calculated or false for degenerate transformations that can't be inverted (in this case the inverse matrix will simply be initialized with the identity matrix)