aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geometry.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-09-03 22:35:45 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-09-03 22:35:45 +0000
commit52406aecadd5677f5cb5507a546ed2f68069e61f (patch)
tree4a1abe9f3006838420143a411bf667d76dc62535 /test/geometry.cpp
parentc29c7b0ea95b86f73d77224efb26f96abdc189ac (diff)
* Extend a bit ParametrizedLine and move it to a separate file,
add unit-tests for it. * remove "using namespace std" in test/main.h such that the compilation bug found today in SVD won't happen again.
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);