cairo_matrix_init: cairo_matrix_init

Description Usage Arguments Details See Also

View source: R/cairo-matrix.R

Description

Sets matrix to be the affine transformation given by xx, yx, xy, yy, x0, y0. The transformation is given by: <programlisting> x_new = xx * x + xy * y + x0; y_new = yx * x + yy * y + y0; </programlisting>

Usage

1
cairo_matrix_init(matrix, xx, yx, xy, yy, x0, y0)

Arguments

matrix

[cairo_matrix_t *] a #cairo_matrix_t

xx

[double] xx component of the affine transformation

yx

[double] yx component of the affine transformation

xy

[double] xy component of the affine transformation

yy

[double] yy component of the affine transformation

x0

[double] X translation component of the affine transformation

y0

[double] Y translation component of the affine transformation

Details

Since: 1.0

C function prototype: void cairo_matrix_init (cairo_matrix_t *matrix, double xx, double yx, double xy, double yy, double x0, double y0)

See Also

Other cairo-matrix: cairo_matrix_init_rotate(), cairo_matrix_init_scale(), cairo_matrix_init_translate(), cairo_matrix_invert(), 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.