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:
authorYuri Gorshenin <y@maps.me>2017-10-09 16:15:12 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2017-10-13 11:55:26 +0300
commitc3496e52f24a94a0d6bf472ce62e66424ed0f1ee (patch)
tree326376a3aa326e7f25a691e4cdd0fa016cec60e4 /indexer/city_boundary.hpp
parent864fd16ddd55b933e3bc9f4c2c0978a94bea9e0c (diff)
[search] CitiesBoundaryTable is exposed to TestMwmBuilder.
Diffstat (limited to 'indexer/city_boundary.hpp')
-rw-r--r--indexer/city_boundary.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/city_boundary.hpp b/indexer/city_boundary.hpp
index 920a7e202a..10147b0291 100644
--- a/indexer/city_boundary.hpp
+++ b/indexer/city_boundary.hpp
@@ -24,6 +24,13 @@ struct CityBoundary
bool HasPoint(double x, double y) const { return HasPoint(m2::PointD(x, y)); }
+ bool HasPoint(m2::PointD const & p, double eps) const
+ {
+ return m_bbox.HasPoint(p, eps) && m_dbox.HasPoint(p, eps) && m_cbox.HasPoint(p, eps);
+ }
+
+ bool HasPoint(double x, double y, double eps) const { return HasPoint(m2::PointD(x, y), eps); }
+
bool operator==(CityBoundary const & rhs) const
{
return m_bbox == rhs.m_bbox && m_cbox == rhs.m_cbox && m_dbox == rhs.m_dbox;