diff options
author | 2008-09-01 17:14:34 +0000 | |
---|---|---|
committer | 2008-09-01 17:14:34 +0000 | |
commit | 49ff9b204c8ddd448fe214fdaf8622c4fe97c795 (patch) | |
tree | fd55de851d7a92571d0fda79c2d98fb69b1f13b4 /Eigen/src/Geometry/Hyperplane.h | |
parent | 6825c8dd6ba8bdbc2b34dda832e5a91a7c382676 (diff) |
remove the conceptualy broken "NoShear" transformation traits,
and rename NonAfine => Projective, GenericAffine => Affine, NoScaling => Isometry
Diffstat (limited to 'Eigen/src/Geometry/Hyperplane.h')
-rw-r--r-- | Eigen/src/Geometry/Hyperplane.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 936808ec2..6cf128712 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -229,14 +229,11 @@ class Hyperplane } template<typename XprType> - inline Hyperplane& transform(const MatrixBase<XprType>& mat, TransformTraits traits = GenericAffine) + inline Hyperplane& transform(const MatrixBase<XprType>& mat, TransformTraits traits = Affine) { - if (traits==GenericAffine) + if (traits==Affine) normal() = mat.inverse().transpose() * normal(); - else if (traits==NoShear) - normal() = (mat.colwise().norm2().cwise().inverse().eval().asDiagonal() - * mat.transpose()).transpose() * normal(); - else if (traits==NoScaling) + else if (traits==Isometry) normal() = mat * normal(); else { @@ -246,7 +243,7 @@ class Hyperplane } inline Hyperplane& transform(const Transform<Scalar,AmbientDimAtCompileTime>& t, - TransformTraits traits = GenericAffine) + TransformTraits traits = Affine) { transform(t.linear(), traits); offset() -= t.translation().dot(normal()); |