diff options
author | Yuri Gorshenin <y@maps.me> | 2016-02-02 14:51:48 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:16:43 +0300 |
commit | b1c96c007315b4127522a2e1aa7af90d9d8501fd (patch) | |
tree | 3691705a01a1c78725ff3b9adc637235e70d1983 /geometry/triangle2d.cpp | |
parent | a038f7cc6b468603d4aa329af830fe45c896fe63 (diff) |
Review fixes.
Diffstat (limited to 'geometry/triangle2d.cpp')
-rw-r--r-- | geometry/triangle2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geometry/triangle2d.cpp b/geometry/triangle2d.cpp index cbecf3a7f4..1bd0f56f4c 100644 --- a/geometry/triangle2d.cpp +++ b/geometry/triangle2d.cpp @@ -18,8 +18,8 @@ bool IsPointInsideTriangle(m2::PointD const & pt, m2::PointD const & p1, // on (p1, p2), (p2, p3) or (p3, p1). if (s1 == 0.0 && s2 == 0.0 && s3 == 0.0) { - return IsPointInsideSegment(pt, p1, p2) || IsPointInsideSegment(pt, p2, p3) || - IsPointInsideSegment(pt, p3, p1); + return IsPointOnSegment(pt, p1, p2) || IsPointOnSegment(pt, p2, p3) || + IsPointOnSegment(pt, p3, p1); } return ((s1 >= 0.0 && s2 >= 0.0 && s3 >= 0.0) || |