RGtk2 (version 2.20.31)

cairoMatrixInitTranslate: cairoMatrixInitTranslate

Description

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

Usage

cairoMatrixInitTranslate(tx, ty)

Arguments

tx
[numeric] amount to translate in the X direction
ty
[numeric] amount to translate in the Y direction

Value

A list containing the following elements:
matrix
[CairoMatrix] a CairoMatrix