From 5787d66d45b5da1b64324b63df249d49faaa6212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 11 Jul 2013 14:25:55 +0200 Subject: [PATCH] Math: test also vector as interpolation phase in Math::lerp(). --- src/Math/Test/FunctionsTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Math/Test/FunctionsTest.cpp b/src/Math/Test/FunctionsTest.cpp index 3f48d5ff3..bc23f09ea 100644 --- a/src/Math/Test/FunctionsTest.cpp +++ b/src/Math/Test/FunctionsTest.cpp @@ -166,6 +166,9 @@ void FunctionsTest::lerp() { Vector3ub c(0, 128, 64); Vector3ub d(16, 0, 32); CORRADE_COMPARE(Math::lerp(c, d, 0.25f), Vector3ub(4, 96, 56)); + + /* Vector as interpolation phase */ + CORRADE_COMPARE(Math::lerp(a, b, Vector3(0.25f, 0.5f, 0.75f)), Vector3(0.0f, 0.0f, 9.0f)); } void FunctionsTest::fma() {