aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geometry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/geometry.cpp')
-rw-r--r--test/geometry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/geometry.cpp b/test/geometry.cpp
index 10e6bbe92..cb9726346 100644
--- a/test/geometry.cpp
+++ b/test/geometry.cpp
@@ -74,7 +74,7 @@ template<typename Scalar> void geometry(void)
VERIFY_IS_APPROX(v0, AngleAxis(a, v0.normalized()) * v0);
VERIFY_IS_APPROX(-v0, AngleAxis(M_PI, v0.unitOrthogonal()) * v0);
- VERIFY_IS_APPROX(cos(a)*v0.norm2(), v0.dot(AngleAxis(a, v0.unitOrthogonal()) * v0));
+ VERIFY_IS_APPROX(ei_cos(a)*v0.norm2(), v0.dot(AngleAxis(a, v0.unitOrthogonal()) * v0));
m = AngleAxis(a, v0.normalized()).toRotationMatrix().adjoint();
VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxis(a, v0.normalized()));
VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxis(a, v0.normalized()) * m);