cairo_matrix_invert: cairo_matrix_invert

Description Usage Arguments Details Value See Also

View source: R/cairo-matrix.R

Description

Changes matrix to be the inverse of its original value. Not all transformation matrices have inverses; if the matrix collapses points together (it is <firstterm>degenerate</firstterm>), then it has no inverse and this function will fail.

Usage

1

Arguments

matrix

[cairo_matrix_t *] a #cairo_matrix_t

Details

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

Since: 1.0

C function prototype: cairo_status_t cairo_matrix_invert (cairo_matrix_t *matrix)

Value

[int]

See Also

Other cairo-matrix: cairo_matrix_init_rotate(), cairo_matrix_init_scale(), cairo_matrix_init_translate(), cairo_matrix_init(), cairo_matrix_multiply(), cairo_matrix_rotate(), cairo_matrix_scale(), cairo_matrix_transform_distance(), cairo_matrix_transform_point(), cairo_matrix_translate()


coolbutuseless/cairocore documentation built on Aug. 31, 2020, 12:43 a.m.