-
Notifications
You must be signed in to change notification settings - Fork 2
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
| Parameter | Default Value | Note |
|---|---|---|
| mat | MatrixIdentity |
| Condition | Return Value |
|---|---|
| (always) | map |
mat = raylib.MatrixTranslate(5, 0, 0)
parts = raylib.MatrixDecompose(mat)
print parts.translation // [5, 0, 0]
print parts.scale // [1, 1, 1]