Fixed quat slerp using mix function when cosTheta close to 1
This commit is contained in:
parent
0b41846700
commit
560b474008
@ -452,7 +452,7 @@ namespace detail
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
T cosTheta = dot(x, y);
|
T cosTheta = dot(x, y);
|
||||||
if(cosTheta <= epsilon<T>())
|
if(glm::abs(cosTheta - T(1)) <= epsilon<T>())
|
||||||
{
|
{
|
||||||
return detail::tquat<T>(
|
return detail::tquat<T>(
|
||||||
mix(x.x, y.x, a),
|
mix(x.x, y.x, a),
|
||||||
|
@ -44,6 +44,7 @@ GLM 0.9.4.1: 2012-12-17
|
|||||||
- Fixed interaction between quaternion and euler angles.
|
- Fixed interaction between quaternion and euler angles.
|
||||||
- Fixed GTC_constants build
|
- Fixed GTC_constants build
|
||||||
- Fixed GTX_multiple
|
- Fixed GTX_multiple
|
||||||
|
- Fixed quat slerp using mix function when cosTheta close to 1
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
GLM 0.9.4.0: 2012-11-18
|
GLM 0.9.4.0: 2012-11-18
|
||||||
|
Loading…
x
Reference in New Issue
Block a user