Skip to content

@ue-too/board / index / decomposeTRS

関数: decomposeTRS() ​

decomposeTRS(matrix): object

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

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