linearly v0.32.0 • Docs
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