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>

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