cairo_matrix
3
cairo_matrix
a matrix
Description
typescairo_matrix
cairo_matrix_t is used throughout
Cairo to represents between different coordinates spaces.
A cairo_matrix holds an affine
transformation, such as a scale, rotation, or shear, or a
combination of those. Mathematically, the effect of an affine
transformation on a point (x,y) is given by:
x_new = x * a + y * c + tx;
y_new = x * b + y * d + ty;
The paramaters a, b,
c, d,
tx, ty can be retrieved
with cairo_matrix_get_affine and set with
cairo_matrix_get_affine.