linearly v0.32.0Docs


linearly v0.32.0 / mat4 / decompose

Function: decompose()

decompose(mat): DecomposedTRS

Decomposes a transformation matrix into its rotation, translation and scale components. Returns only the rotation component

Parameters

mat: mat4

Matrix to be decomposed (input)

Returns

DecomposedTRS

Defined in

src/mat4.ts:824open in new window