跳转到内容

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