diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-09-30 16:59:28 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-09-30 16:59:28 +0200 |
commit | 5180bb5e470c8b9cf9395270fca0f068c001ba44 (patch) | |
tree | 8c7321589fa7d53d42226d78fbed5907be364d4c /test/geo_transformations.cpp | |
parent | 01875049125a8da1da73b3ea0ad9319d6d80f4c2 (diff) |
Add missing default ctor in Rotation2D
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r-- | test/geo_transformations.cpp | 9 |
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() |