diff --git a/vcg/space/deprecated_point2.h b/vcg/space/deprecated_point2.h index 1b5056b5..6a895e86 100644 --- a/vcg/space/deprecated_point2.h +++ b/vcg/space/deprecated_point2.h @@ -254,7 +254,7 @@ public: /// returns the suqared distance to another point p inline ScalarType SquaredDistance( Point2 const & p ) const { - return Norm2(*this-p); + return (*this-p).SquaredNorm(); } /// returns the angle with X axis (radiants, in [-PI, +PI] ) inline ScalarType Angle() const {