From 12d257c3abff7343d5698f57a0d5a6233e95e845 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 31 May 2010 12:13:47 +0000 Subject: [PATCH] Debugged: method Point2::SquaredDistance() invoked Norm2 method, which does not exist. Invocation replaced with (*this-p).SquaredNorm() --- vcg/space/deprecated_point2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {