The OpenD Programming Language

Matrix.invert

Changes 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.

struct Matrix
void
invert
()

Throws

If matrix has an inverse, modifies matrix to be the inverse matrix. Otherwise, throws a cairo exception with CAIRO_STATUS_INVALID_MATRIX type.

Meta