Fixed quat slerp using mix function when cosTheta close to 1

This commit is contained in:
Christophe Riccio 2012-12-20 18:13:04 +01:00
parent 0b41846700
commit 560b474008
2 changed files with 15 additions and 14 deletions

View File

@ -452,7 +452,7 @@ namespace detail
)
{
T cosTheta = dot(x, y);
if(cosTheta <= epsilon<T>())
if(glm::abs(cosTheta - T(1)) <= epsilon<T>())
{
return detail::tquat<T>(
mix(x.x, y.x, a),

View File

@ -44,6 +44,7 @@ GLM 0.9.4.1: 2012-12-17
- Fixed interaction between quaternion and euler angles.
- Fixed GTC_constants build
- Fixed GTX_multiple
- Fixed quat slerp using mix function when cosTheta close to 1
================================================================================
GLM 0.9.4.0: 2012-11-18