Package: cairo

Function cairo:matrix-invert

Lambda List

cairo:matrix-invert (matrix)

Arguments

matrix -- a cairo:matrix-t instance

Return Value

The inversed cairo:matrix-t instance if matrix has an inverse, otherwise nil.

Details

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.
 

See also

2025-1-18