From 5180bb5e470c8b9cf9395270fca0f068c001ba44 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 30 Sep 2014 16:59:28 +0200 Subject: Add missing default ctor in Rotation2D --- test/geo_transformations.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/geo_transformations.cpp') 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 void transformations() t20 = Translation2(v20) * (Rotation2D(s0) * Eigen::Scaling(s0)); t21 = Translation2(v20) * Rotation2D(s0) * Eigen::Scaling(s0); VERIFY_IS_APPROX(t20,t21); + + // check basic features + { + Rotation2D r1; // default ctor + r1 = Rotation2D(s0); // copy assignment + VERIFY_IS_APPROX(r1.angle(),s0); + Rotation2D r2(r1); // copy ctor + VERIFY_IS_APPROX(r2.angle(),s0); + } } template void transform_alignment() -- cgit v1.2.3