mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 07:18:54 +00:00
fix: axisAngle
invalid epsilon comparison
This commit is contained in:
parent
b3f8772026
commit
93e573f7b1
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ namespace glm
|
|||
if (glm::abs(s) < T(0.001))
|
||||
s = static_cast<T>(1);
|
||||
T const angleCos = (m[0][0] + m[1][1] + m[2][2] - static_cast<T>(1)) * static_cast<T>(0.5);
|
||||
if(angleCos - static_cast<T>(1) < epsilon)
|
||||
if(abs(angleCos - static_cast<T>(1)) < epsilon)
|
||||
angle = pi<T>() * static_cast<T>(0.25);
|
||||
else
|
||||
angle = acos(angleCos);
|
||||
|
|
Loading…
Add table
Reference in a new issue