move more distance calculations to float

This commit is contained in:
Dennis Luxen
2014-05-21 10:03:30 +02:00
parent 812cf36d52
commit 9117b45899
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -152,9 +152,9 @@ class StaticRTree
return min_dist;
}
inline double GetMinMaxDist(const FixedPointCoordinate &location) const
inline float GetMinMaxDist(const FixedPointCoordinate &location) const
{
double min_max_dist = std::numeric_limits<double>::max();
float min_max_dist = std::numeric_limits<double>::max();
// Get minmax distance to each of the four sides
FixedPointCoordinate upper_left(max_lat, min_lon);
FixedPointCoordinate upper_right(max_lat, max_lon);