Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'search/geometry_utils.hpp')
-rw-r--r--search/geometry_utils.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/search/geometry_utils.hpp b/search/geometry_utils.hpp
index 7b940b6068..bf0c9fe3ba 100644
--- a/search/geometry_utils.hpp
+++ b/search/geometry_utils.hpp
@@ -3,17 +3,18 @@
#include "geometry/point2d.hpp"
#include "geometry/rect2d.hpp"
-
namespace search
{
-
// Distance between 2 mercator points in meters.
double PointDistance(m2::PointD const & a, m2::PointD const & b);
-// Test for equal rects with epsilon in meters.
-bool IsEqualMercator(m2::RectD const & r1, m2::RectD const & r2, double epsMeters);
+
+// Tests whether two rects given in the mercator projection are
+// equal with the absolute precision |eps|.
+bool IsEqualMercator(m2::RectD const & r1, m2::RectD const & r2, double eps);
+
// Get inflated viewport rect for search query.
bool GetInflatedViewport(m2::RectD & viewport);
+
// Get scale level to make geometry index query for current viewport.
int GetQueryIndexScale(m2::RectD const & viewport);
-
-}
+} // namespace search