Skip to content
Snippets Groups Projects
Commit 072f17d8 authored by Tom Fischer's avatar Tom Fischer
Browse files

Substituting MathLib::checkDistance with MathLib::sqrDist and a comparison.

parent f3476b71
No related branches found
No related tags found
No related merge requests found
...@@ -413,6 +413,6 @@ bool pointsAreIdentical(const std::vector<Point*> &pnt_vec, ...@@ -413,6 +413,6 @@ bool pointsAreIdentical(const std::vector<Point*> &pnt_vec,
{ {
if (i == j) if (i == j)
return true; return true;
return MathLib::checkDistance( *pnt_vec[i], *pnt_vec[j], prox ); return MathLib::sqrDist(pnt_vec[i], pnt_vec[j]) < prox;
} }
} // end namespace GeoLib } // end namespace GeoLib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment