diff options
author | Yuri Gorshenin <y@maps.me> | 2017-10-09 16:15:12 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2017-10-13 11:55:26 +0300 |
commit | c3496e52f24a94a0d6bf472ce62e66424ed0f1ee (patch) | |
tree | 326376a3aa326e7f25a691e4cdd0fa016cec60e4 /indexer/city_boundary.hpp | |
parent | 864fd16ddd55b933e3bc9f4c2c0978a94bea9e0c (diff) |
[search] CitiesBoundaryTable is exposed to TestMwmBuilder.
Diffstat (limited to 'indexer/city_boundary.hpp')
-rw-r--r-- | indexer/city_boundary.hpp | 7 |
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; |