Skip to content

@ue-too/board / index / decomposeTRS

函式: decomposeTRS()

decomposeTRS(matrix): object

定義於: packages/board/src/camera/utils/matrix.ts:439

Decomposes a 2D transformation matrix into Translation, Rotation, and Scale (TRS)

參數

matrix

TransformationMatrix

The transformation matrix to decompose

回傳

object

Object containing translation, rotation (in radians), and scale components

rotation

rotation: number

scale

scale: object

scale.x

x: number

scale.y

y: number

translation

translation: object

translation.x

x: number

translation.y

y: number