From 40a12441c0d47e3fe8bdc4332f16de91ad92f619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 29 Nov 2015 22:37:55 +0100 Subject: [PATCH] Math: haha, pushed without test. Kill me. --- src/Magnum/Math/Vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }