Skip to content

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

Matrix3.translation() method

创建平移矩阵(静态方法)

Signature:

typescript
static translation(x: number, y: number): Matrix3;

Parameters

Parameter

Type

Description

x

number

X方向平移

y

number

Y方向平移

Returns:

Matrix3

新的平移矩阵

基于 MIT 许可证发布