Contents

GLKMatrix4Invert(_:_:)

Returns the inverse of a matrix.

Declaration

func GLKMatrix4Invert(_ matrix: GLKMatrix4, _ isInvertible: UnsafeMutablePointer<Bool>?) -> GLKMatrix4

Parameters

  • matrix:

    A 4x4 matrix.

  • isInvertible:

    On return, this holds True if the matrix was inverted or False if the matrix is not invertible.

Return Value

If isInvertible was set to true, this holds an inverted matrix. Otherwise, the identity matrix is returned.

See Also

Performing Mathematical Operations on Matrices