aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_transformations.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-09-30 16:59:28 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-09-30 16:59:28 +0200
commit5180bb5e470c8b9cf9395270fca0f068c001ba44 (patch)
tree8c7321589fa7d53d42226d78fbed5907be364d4c /test/geo_transformations.cpp
parent01875049125a8da1da73b3ea0ad9319d6d80f4c2 (diff)
Add missing default ctor in Rotation2D
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r--test/geo_transformations.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp
index 7d9080333..1768d7b8a 100644
--- a/test/geo_transformations.cpp
+++ b/test/geo_transformations.cpp
@@ -397,6 +397,15 @@ template<typename Scalar, int Mode, int Options> void transformations()
t20 = Translation2(v20) * (Rotation2D<Scalar>(s0) * Eigen::Scaling(s0));
t21 = Translation2(v20) * Rotation2D<Scalar>(s0) * Eigen::Scaling(s0);
VERIFY_IS_APPROX(t20,t21);
+
+ // check basic features
+ {
+ Rotation2D<Scalar> r1; // default ctor
+ r1 = Rotation2D<Scalar>(s0); // copy assignment
+ VERIFY_IS_APPROX(r1.angle(),s0);
+ Rotation2D<Scalar> r2(r1); // copy ctor
+ VERIFY_IS_APPROX(r2.angle(),s0);
+ }
}
template<typename Scalar> void transform_alignment()