diff --git a/src/Magnum/Math/Vector.h b/src/Magnum/Math/Vector.h index c757e9b2b..e143f7efc 100644 --- a/src/Magnum/Math/Vector.h +++ b/src/Magnum/Math/Vector.h @@ -51,7 +51,7 @@ namespace Magnum { namespace Math { namespace Implementation { template struct VectorConverter; /* Needed by DualQuaternion and Functions.h (to avoid dependency between them) */ - template T lerp(const T& a, const T& b, U t) { + template T lerp(const T& a, const T& b, U t) { return T((U(1) - t)*a + t*b); } }