summaryrefslogtreecommitdiff
path: root/doc/public/tmpl/cairo-matrix.sgml
blob: 19b3abc5f2b97a2cec3c75a80145e85b6ba7b66c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!-- ##### SECTION Title ##### -->
cairo_matrix_t

<!-- ##### SECTION Short_Description ##### -->
Generic matrix operations

<!-- ##### SECTION Long_Description ##### -->

  <para><indexterm><primary>types</primary><secondary>cairo_matrix</secondary></indexterm><indexterm><primary/></indexterm>
    #cairo_matrix_t is used throughout cairo to convert between different
    coordinate spaces.  A #cairo_matrix_t holds an affine transformation,
    such as a scale, rotation, shear, or a combination of these.
    The transformation of a point (<literal>x</literal>,<literal>y</literal>)
    is given by:
  </para>
  <programlisting>
    x_new = xx * x + xy * y + x0;
    y_new = yx * x + yy * y + y0;
  </programlisting>
  <para>
    The current transformation matrix of a #cairo_t, represented as a
    #cairo_matrix_t, defines the transformation from user-space
    coordinates to device-space coordinates. See cairo_get_matrix() and
    cairo_set_matrix().
  </para>

<!-- ##### SECTION See_Also ##### -->
<para>
    
</para>

<!-- ##### STRUCT cairo_matrix_t ##### -->
<para>

</para>

@xx: 
@yx: 
@xy: 
@yy: 
@x0: 
@y0: