mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-01 19:59:17 -05:00
Update raymath.h
This commit is contained in:
@ -2555,7 +2555,7 @@ RMAPI int QuaternionEquals(Quaternion p, Quaternion q)
|
|||||||
// Decompose a transformation matrix into its rotational, translational and scaling components and remove shear
|
// Decompose a transformation matrix into its rotational, translational and scaling components and remove shear
|
||||||
RMAPI void MatrixDecompose(Matrix mat, Vector3 *translation, Quaternion *rotation, Vector3 *scale)
|
RMAPI void MatrixDecompose(Matrix mat, Vector3 *translation, Quaternion *rotation, Vector3 *scale)
|
||||||
{
|
{
|
||||||
float eps = 1e-9;
|
float eps = (float)1e-9;
|
||||||
|
|
||||||
// Extract Translation
|
// Extract Translation
|
||||||
translation->x = mat.m12;
|
translation->x = mat.m12;
|
||||||
|
|||||||
Reference in New Issue
Block a user