From f3fd7fd22b74b7f54264e6ef46abb2de7550cd00 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Jun 2009 09:35:04 +0200 Subject: [PATCH] fix #11: now the default Transform ctor set the last row in Affine mode. --- Eigen/src/Geometry/Transform.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h index 58afd8993..78d45a7cb 100644 --- a/Eigen/src/Geometry/Transform.h +++ b/Eigen/src/Geometry/Transform.h @@ -201,8 +201,13 @@ protected: public: - /** Default constructor without initialization of the coefficients. */ - inline Transform() { } + /** Default constructor without initialization of the meaningfull coefficients. + * If Mode==Affine, then the last row is set to [0 ... 0 1] */ + inline Transform() + { + if (Mode==Affine) + makeAffine(); + } inline Transform(const Transform& other) {