@c %start of fragment @node cairo_matrix_t @chapter cairo_matrix_t Generic matrix operations @section Overview @code{} is used throughout cairo to convert between different coordinate spaces. A @code{} holds an affine transformation, such as a scale, rotation, shear, or a combination of these. The transformation of a point (@samp{x},@samp{y}) is given by: @example x_new = xx * x + xy * y + x0; y_new = yx * x + yy * y + y0; @end example The current transformation matrix of a @code{}, represented as a @code{}, defines the transformation from user-space coordinates to device-space coordinates. See @code{cairo-get-matrix} and @code{cairo-set-matrix}. @section Usage @include defuns-cairo-matrix.xml.texi @c %end of fragment