Moving coordinate auxiliary functions into the appropriate place

This commit is contained in:
Dennis Luxen
2013-06-27 09:45:28 -04:00
parent aecbcdd390
commit cfa8b1f0dd
3 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ void DescriptionFactory::Run(const SearchEngine &sEngine, const unsigned zoomLev
/** starts at index 1 */
pathDescription[0].length = 0;
for(unsigned i = 1; i < pathDescription.size(); ++i) {
pathDescription[i].length = ApproximateDistanceByEuclid(pathDescription[i-1].location, pathDescription[i].location);
pathDescription[i].length = ApproximateEuclideanDistance(pathDescription[i-1].location, pathDescription[i].location);
}
double lengthOfSegment = 0;