Skip to content

Home > @esengine/ecs-framework-monorepo > Matrix3 > makeTranslation

Matrix3.makeTranslation() method

设置为平移矩阵

Signature:

typescript
makeTranslation(x: number, y: number): this;

Parameters

Parameter

Type

Description

x

number

X方向平移

y

number

Y方向平移

Returns:

this

当前矩阵实例(链式调用)

基于 MIT 许可证发布