Debugged:
method Point2::SquaredDistance() invoked Norm2 method, which does not exist. Invocation replaced with (*this-p).SquaredNorm()
This commit is contained in:
parent
cf60111b79
commit
12d257c3ab
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue