Skip to content

raylib.MatrixDecompose

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Decompose a transformation matrix into its rotational, translational and scaling components and remove shear TODO: This function is not following raymath conventions defined in header: NOT 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