aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-06-10 09:35:04 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-06-10 09:35:04 +0200
commitf3fd7fd22b74b7f54264e6ef46abb2de7550cd00 (patch)
tree041111e13ec54b907ce8d6257cda16a017eef059
parentd97d307fcfc9c9421562705db7bf734865dfd53b (diff)
fix #11: now the default Transform ctor set the last row in Affine mode.
-rw-r--r--Eigen/src/Geometry/Transform.h9
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)
{