Skip to content

@ue-too/board / decomposeTRSSVD

Function: decomposeTRSSVD()

decomposeTRSSVD(matrix): object

Defined in: packages/board/src/camera/utils/matrix.ts:562

Decomposes a matrix using SVD (Singular Value Decomposition) approach This is an alternative method that can handle more complex transformations

Parameters

matrix

TransformationMatrix

The transformation matrix to decompose

Returns

object

Object containing translation, rotation, 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