Debugged:

method Point2::SquaredDistance() invoked Norm2 method, which does not exist. Invocation replaced with (*this-p).SquaredNorm()
This commit is contained in:
Paolo Cignoni 2010-05-31 12:13:47 +00:00
parent cf60111b79
commit 12d257c3ab
1 changed files with 1 additions and 1 deletions

View File

@ -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 {