Fixed type cast

This commit is contained in:
Christophe Riccio 2011-05-25 10:00:13 +01:00
parent 740c28a22c
commit 2baf928bd5

View File

@ -416,7 +416,7 @@ namespace quaternion{
) )
{ {
T angle = acos(dot(x, y)); T angle = acos(dot(x, y));
return (sin((1 - a) * angle) * x + sin(a * angle) * y) / sin(angle); return (sin((T(1) - a) * angle) * x + sin(a * angle) * y) / sin(angle);
} }
template <typename T> template <typename T>