Learn R Programming

RGtk2 (version 2.8.8)

cairoMatrixTranslate: cairoMatrixTranslate

Description

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.

Usage

cairoMatrixTranslate(matrix, tx, ty)

Arguments

matrix
[CairoMatrix] a cairo_matrix_t
tx
[numeric] amount to translate in the X direction
ty
[numeric] amount to translate in the Y direction