Function Matrix.translate

Applies a translation by tx, ty to the transformation in matrix. The effect of the new transformation is to first translate the coordinates by tx and ty, then apply the original transformation to the coordinates.

Prototype

void translate(
  double tx,
  double ty
);

Parameters

NameDescription
tx amount to translate in the X direction
ty amount to translate in the Y direction

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1