aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry/ParametrizedLine.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-11-03 19:14:17 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-11-03 19:14:17 +0000
commit3d90c139706daccce577f5f2960ceb98a42871a3 (patch)
treef3c8c501a9d66e183a297b94a5b2362511e14161 /Eigen/src/Geometry/ParametrizedLine.h
parent3f580e240e2a3018c7e040e4c4cfc9541c84166d (diff)
norm2() renamed to squaredNorm(), kept as deprecated for now.
Diffstat (limited to 'Eigen/src/Geometry/ParametrizedLine.h')
-rw-r--r--Eigen/src/Geometry/ParametrizedLine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/ParametrizedLine.h b/Eigen/src/Geometry/ParametrizedLine.h
index 80ce72dcd..e726d2fe9 100644
--- a/Eigen/src/Geometry/ParametrizedLine.h
+++ b/Eigen/src/Geometry/ParametrizedLine.h
@@ -88,7 +88,7 @@ public:
RealScalar squaredDistance(const VectorType& p) const
{
VectorType diff = p-origin();
- return (diff - diff.dot(direction())* direction()).norm2();
+ return (diff - diff.dot(direction())* direction()).squaredNorm();
}
/** \returns the distance of a point \a p to its projection onto the line \c *this.
* \sa squaredDistance()