mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 10:44:34 +00:00
Fixed slerp, linear interpolation when cosTheta is close to 1, #65
This commit is contained in:
parent
c097769bad
commit
e7dc01fc06
@ -512,10 +512,10 @@ namespace detail
|
||||
{
|
||||
// Linear interpolation
|
||||
return detail::tquat<T>(
|
||||
mix(x.w, y.w, a),
|
||||
mix(x.x, y.x, a),
|
||||
mix(x.y, y.y, a),
|
||||
mix(x.z, y.z, a));
|
||||
mix(x.w, z.w, a),
|
||||
mix(x.x, z.x, a),
|
||||
mix(x.y, z.y, a),
|
||||
mix(x.z, z.z, a));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user