Name
cmatrix:Invert -- invert matrix
Synopsis
status = cmatrix:Invert()
Function
Changes the matrix to be the inverse of its original value. Not all transformation matrices have inverses; if the matrix collapses points together (it is degenerate), then it has no inverse and this function will fail.

If the matrix has an inverse, modifies the matrix to be the inverse matrix and returns #CAIRO_STATUS_SUCCESS. Otherwise, returns #CAIRO_STATUS_INVALID_MATRIX.

Inputs
none

Results
status
status code indicating success or error (see above)

Show TOC