diff options
author | Yuri Gorshenin <y@maps.me> | 2017-09-20 17:24:11 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2017-09-22 14:07:59 +0300 |
commit | ff84731e11a559c38d0381077e997117e0b1d438 (patch) | |
tree | 8c9f5125919a1f5b82160e4bfd06de46ec4e32fb /geometry/segment2d.cpp | |
parent | 41889bb72a43eccb14e9c3a4b93bcd21153cb14b (diff) |
Review fixes.
Diffstat (limited to 'geometry/segment2d.cpp')
-rw-r--r-- | geometry/segment2d.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/geometry/segment2d.cpp b/geometry/segment2d.cpp index 97d73819b9..f51d5940c7 100644 --- a/geometry/segment2d.cpp +++ b/geometry/segment2d.cpp @@ -3,6 +3,7 @@ #include "geometry/robust_orientation.hpp" #include <algorithm> + using namespace std; namespace m2 @@ -12,8 +13,7 @@ string DebugPrint(Segment2D const & segment) return "(" + DebugPrint(segment.m_u) + ", " + DebugPrint(segment.m_v) + ")"; } -bool IsPointOnSegmentEps(m2::PointD const & pt, m2::PointD const & p1, m2::PointD const & p2, - double eps) +bool IsPointOnSegmentEps(PointD const & pt, PointD const & p1, PointD const & p2, double eps) { double const t = robust::OrientedS(p1, p2, pt); @@ -33,7 +33,7 @@ bool IsPointOnSegmentEps(m2::PointD const & pt, m2::PointD const & p1, m2::Point return pt.x >= minX - eps && pt.x <= maxX + eps && pt.y >= minY - eps && pt.y <= maxY + eps; } -bool IsPointOnSegment(m2::PointD const & pt, m2::PointD const & p1, m2::PointD const & p2) +bool IsPointOnSegment(PointD const & pt, PointD const & p1, PointD const & p2) { // The epsilon here is chosen quite arbitrarily, to pass paranoid // tests and to match our real-data geometry precision. If you have |