Skip to main content

Function: translation()

translation(xoff, yoff): Affine

Defined in: affine.ts:41

Create a translation transform from an offset vector.

Parameters​

xoff​

number

Translation offset in x direction.

yoff​

number

Translation offset in y direction.

Returns​

Affine

Transform that applies the given translation.