Skip to content

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

Matrix3.TRS() method

创建TRS(平移-旋转-缩放)变换矩阵

Signature:

typescript
static TRS(translation: Vector2, rotation: number, scale: Vector2): Matrix3;

Parameters

Parameter

Type

Description

translation

Vector2

平移向量

rotation

number

旋转角度(弧度)

scale

Vector2

缩放向量

Returns:

Matrix3

新的TRS矩阵

基于 MIT 许可证发布