diff options
author | 2009-06-10 09:35:04 +0200 | |
---|---|---|
committer | 2009-06-10 09:35:04 +0200 | |
commit | f3fd7fd22b74b7f54264e6ef46abb2de7550cd00 (patch) | |
tree | 041111e13ec54b907ce8d6257cda16a017eef059 /Eigen/src/Geometry/Transform.h | |
parent | d97d307fcfc9c9421562705db7bf734865dfd53b (diff) |
fix #11: now the default Transform ctor set the last row in Affine mode.
Diffstat (limited to 'Eigen/src/Geometry/Transform.h')
-rw-r--r-- | Eigen/src/Geometry/Transform.h | 9 |
1 files 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) { |