From 1d24f3d3beb49475edf6236b071737fab2dd1347 Mon Sep 17 00:00:00 2001 From: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:13:39 +0300 Subject: [PATCH] Update raymath.h --- src/raymath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raymath.h b/src/raymath.h index 07983b0f4..7cd656297 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -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;