diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-07-12 14:30:28 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-07-12 14:30:28 +0200 |
commit | 61c3f55362969ca20d88120f0ca226d3c23668d8 (patch) | |
tree | 2f2f9ec71cedb7964c403d1a8a3c326a93cea2c7 /test/geo_quaternion.cpp | |
parent | 5431473d673bcfb0a573d0d762f5f99357d498f2 (diff) |
Relax slerp unit test
Diffstat (limited to 'test/geo_quaternion.cpp')
-rw-r--r-- | test/geo_quaternion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename QuatType> 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); } } |