Function Matrix.initTranslate

Initializes matrix to a transformation that translates by tx and ty in the X and Y dimensions, respectively.

Prototype

void initTranslate(
  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