Update quat.h

This commit is contained in:
Recep Aslantas
2024-05-13 17:20:28 +03:00
committed by GitHub
parent cd5ed1f4c4
commit c5b2afc1c4

View File

@@ -766,7 +766,7 @@ glm_quat_slerp_longest(versor from, versor to, float t, versor dest) {
return;
}
//NOTE THAT ONLY THIS CHANGED
/* longest path */
if (!(cosTheta < 0.0f)) {
glm_vec4_negate(q1);
cosTheta = -cosTheta;