Update raymath.h

This commit is contained in:
Antonis Geralis 2024-06-13 22:13:39 +03:00 committed by GitHub
parent 747dbd3529
commit 1d24f3d3be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2387,7 +2387,7 @@ RMAPI Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle)
// QuaternionNormalize(q);
Quaternion q = result;
lengthSq = q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w;
float lengthSq = q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w;
if (lengthSq == 0.0f) lengthSq = 1.0f;
ilength = 1.0f/sqrtf(lengthSq);
result.x = q.x*ilength;