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

Prototype

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.

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1