Skip to content

raylib.MatrixDecompose

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Decompose a transformation matrix into its rotational, translational and scaling components and remove shear TODO: WARNING: Following raymath convention and make the function self-contained

Parameters

Parameter Default Value Note
mat MatrixIdentity

Return value

Condition Return Value
(always) map

Notes

Example

mat = raylib.MatrixTranslate(5, 0, 0)
parts = raylib.MatrixDecompose(mat)
print parts.translation  // [5, 0, 0]
print parts.scale        // [1, 1, 1]

Clone this wiki locally