diff options
author | Mathieu Gautier <mathieu.gautier@cea.fr> | 2009-11-13 16:41:51 +0100 |
---|---|---|
committer | Mathieu Gautier <mathieu.gautier@cea.fr> | 2009-11-13 16:41:51 +0100 |
commit | 6680fa42ee830d315db8879d7b0746c68bdcba4e (patch) | |
tree | 0d734759e942263ba26d89eaa805e383ba10a21b /test/geo_transformations.cpp | |
parent | d07c05b3a5e338a018e7b0992f32f45ef2f12495 (diff) |
* add Map<Quaternion> test based on Map from test/map.cpp
* replace implicit constructor AngleAxis(QuaternionBase&) by an explicit one, it seems ambiguous for the compiler
* remove explicit constructor with conversion type quaternion(Quaternion&): conflict between constructor.
* modify EIGEN_INHERIT_ASSIGNEMENT_OPERATORS to suit Quaternion class
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r-- | test/geo_transformations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp index f1d068b83..84b3c5355 100644 --- a/test/geo_transformations.cpp +++ b/test/geo_transformations.cpp @@ -81,7 +81,7 @@ template<typename Scalar, int Mode> void transformations(void) * (AngleAxisx(Scalar(0.3), Vector3(0,0,1)).toRotationMatrix() * v1))); // angle-axis conversion - AngleAxisx aa = q1; + AngleAxisx aa = AngleAxisx(q1); VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); VERIFY_IS_NOT_APPROX(q1 * v1, Quaternionx(AngleAxisx(aa.angle()*2,aa.axis())) * v1); |