Skip to content

createTranslateMatrix

createTranslateMatrix(x, y?): TMat2D

Parameters

x: number

translation on X axis

y?: number = 0

translation on Y axis

Returns

TMat2D

matrix

Defined in

src/util/misc/matrix.ts:147