aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-08-06 14:57:38 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-08-06 14:57:38 +0200
commit2e46e9f2b487a249f0374128bd5b8217ca81a278 (patch)
treeafb4e367cb0825dde508aecdf44aa1b476993806 /Eigen/src
parentd34c5ef509fdc637badfd24dd046c84e409693d1 (diff)
shame on me
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Geometry/Transform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h
index 6e225a92b..642f307ed 100644
--- a/Eigen/src/Geometry/Transform.h
+++ b/Eigen/src/Geometry/Transform.h
@@ -911,7 +911,11 @@ Transform<Scalar,Dim,Mode>::inverse(TransformTraits hint) const
}
// translation and remaining parts
res.template corner<Dim,1>(TopRight) = - res.template corner<Dim,Dim>(TopLeft) * translation();
- res.makeAffine();
+ if(int(Mode)!=int(AffineCompact))
+ {
+ res.template block<1,Dim>(Dim,0).setZero();
+ res.coeffRef(Dim,Dim) = 1;
+ }
return res;
}
}