diff options
author | Yuri Gorshenin <y@maps.me> | 2017-10-11 11:53:51 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2017-10-13 11:55:26 +0300 |
commit | 265368d4b7fa27979e0f409a9c68cad89e755b82 (patch) | |
tree | c19f85f9f0e4db0b65eb2e3480453a899dbc0625 /geometry | |
parent | c3496e52f24a94a0d6bf472ce62e66424ed0f1ee (diff) |
Review fixes.beta-1064
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/calipers_box.hpp | 2 | ||||
-rw-r--r-- | geometry/diamond_box.hpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/geometry/calipers_box.hpp b/geometry/calipers_box.hpp index 61dccff44f..ed49431d88 100644 --- a/geometry/calipers_box.hpp +++ b/geometry/calipers_box.hpp @@ -27,7 +27,7 @@ public: std::vector<PointD> const & Points() const { return m_points; } - bool HasPoint(PointD const & p) const { return HasPoint(p, kEps /* eps */); } + bool HasPoint(PointD const & p) const { return HasPoint(p, kEps); } bool HasPoint(double x, double y) const { return HasPoint(m2::PointD(x, y)); } bool HasPoint(PointD const & p, double eps) const; diff --git a/geometry/diamond_box.hpp b/geometry/diamond_box.hpp index 6c9b3cdf48..544353208b 100644 --- a/geometry/diamond_box.hpp +++ b/geometry/diamond_box.hpp @@ -24,7 +24,11 @@ public: bool HasPoint(double x, double y) const { return m_box.HasPoint(x + y, x - y); } bool HasPoint(PointD const & p, double eps) const { return HasPoint(p.x, p.y, eps); } - bool HasPoint(double x, double y, double eps) const { return m_box.HasPoint(x + y, x - y, eps); } + + bool HasPoint(double x, double y, double eps) const + { + return m_box.HasPoint(x + y, x - y, 2 * eps); + } std::vector<m2::PointD> Points() const { |