From 61c3f55362969ca20d88120f0ca226d3c23668d8 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 12 Jul 2013 14:30:28 +0200 Subject: Relax slerp unit test --- test/geo_quaternion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/geo_quaternion.cpp') diff --git a/test/geo_quaternion.cpp b/test/geo_quaternion.cpp index 27040dd4d..e011879a5 100644 --- a/test/geo_quaternion.cpp +++ b/test/geo_quaternion.cpp @@ -38,7 +38,7 @@ template void check_slerp(const QuatType& q0, const QuatType& Scalar theta = AA(q*q0.inverse()).angle(); VERIFY(abs(q.norm() - 1) < largeEps); if(theta_tot==0) VERIFY(theta_tot==0); - else VERIFY(abs(theta/theta_tot - t) < largeEps); + else VERIFY(abs(theta - t * theta_tot) < largeEps); } } -- cgit v1.2.3