diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-11-18 18:15:19 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-11-18 18:15:19 +0100 |
commit | e3d890bc5a89798eff50ff6650292b4fa934f72e (patch) | |
tree | 3c7d40332a019dce2773fc6a096d046eeab9fb7a /test/geo_transformations.cpp | |
parent | 0529ecfe1b43d40e40755a2d856188d3ded2c14e (diff) |
Another big refactoring change:
* add a new Eigen2Support module including Cwise, Flagged, and some other deprecated stuff
* add a few cwiseXxx functions
* adapt a few modules to use cwiseXxx instead of the .cwise() prefix
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r-- | test/geo_transformations.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp index 84b3c5355..334771261 100644 --- a/test/geo_transformations.cpp +++ b/test/geo_transformations.cpp @@ -22,6 +22,7 @@ // License and a copy of the GNU General Public License along with // Eigen. If not, see <http://www.gnu.org/licenses/>. +#define EIGEN2_SUPPORT #include "main.h" #include <Eigen/Geometry> #include <Eigen/LU> @@ -109,7 +110,7 @@ template<typename Scalar, int Mode> void transformations(void) t0.matrix().setZero(); t0 = Transform3::Identity(); VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); - + t0.linear() = q1.toRotationMatrix(); t1.setIdentity(); t1.linear() = q1.toRotationMatrix(); @@ -351,7 +352,7 @@ template<typename Scalar, int Mode> void transformations(void) VERIFY_IS_APPROX(r2d1f.template cast<Scalar>(),r2d1); Rotation2D<double> r2d1d = r2d1.template cast<double>(); VERIFY_IS_APPROX(r2d1d.template cast<Scalar>(),r2d1); - + } void test_geo_transformations() |