Skip to content

Documentation / @ripl/core / matrixTranslate

Function: matrixTranslate()

matrixTranslate(x, y): Matrix

Defined in: packages/core/src/math/matrix.ts:22

Returns a translation matrix that moves points by (x, y).

Parameters

ParameterType
xnumber
ynumber

Returns

Matrix