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:
新的平移矩阵