diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-12-05 15:11:01 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-12-05 15:11:01 +0900 |
commit | 3fdc3e5ee96dca5b11d1694975a65200787eab86 (patch) | |
tree | 5c1733853892b8397d67706fa453a9bd978d2102 /boost/geometry/strategies/cartesian/side_by_triangle.hpp | |
parent | 88e602c57797660ebe0f9e15dbd64c1ff16dead3 (diff) | |
download | boost-3fdc3e5ee96dca5b11d1694975a65200787eab86.tar.gz boost-3fdc3e5ee96dca5b11d1694975a65200787eab86.tar.bz2 boost-3fdc3e5ee96dca5b11d1694975a65200787eab86.zip |
Imported Upstream version 1.66.0upstream/1.66.0
Diffstat (limited to 'boost/geometry/strategies/cartesian/side_by_triangle.hpp')
-rw-r--r-- | boost/geometry/strategies/cartesian/side_by_triangle.hpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/boost/geometry/strategies/cartesian/side_by_triangle.hpp b/boost/geometry/strategies/cartesian/side_by_triangle.hpp index 4d1d97520f..91bbee7bb2 100644 --- a/boost/geometry/strategies/cartesian/side_by_triangle.hpp +++ b/boost/geometry/strategies/cartesian/side_by_triangle.hpp @@ -4,10 +4,11 @@ // Copyright (c) 2008-2015 Bruno Lalande, Paris, France. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK. -// This file was modified by Oracle on 2015. -// Modifications copyright (c) 2015, Oracle and/or its affiliates. +// This file was modified by Oracle on 2015, 2017. +// Modifications copyright (c) 2015-2017, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle +// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. @@ -29,9 +30,9 @@ #include <boost/geometry/strategies/cartesian/disjoint_segment_box.hpp> #include <boost/geometry/strategies/cartesian/envelope_segment.hpp> +#include <boost/geometry/strategies/compare.hpp> #include <boost/geometry/strategies/side.hpp> -#include <boost/geometry/algorithms/detail/relate/less.hpp> #include <boost/geometry/algorithms/detail/equals/point_point.hpp> @@ -182,10 +183,11 @@ public : // arguments, we cyclically permute them so that the first // argument is always the lexicographically smallest point. - geometry::detail::relate::less less; - if (less(p, p1)) + typedef compare::cartesian<compare::less> less; + + if (less::apply(p, p1)) { - if (less(p, p2)) + if (less::apply(p, p2)) { // p is the lexicographically smallest return side_value<CoordinateType, PromotedType>(p, p1, p2, epsp); @@ -197,7 +199,7 @@ public : } } - if (less(p1, p2)) + if (less::apply(p1, p2)) { // p1 is the lexicographically smallest return side_value<CoordinateType, PromotedType>(p1, p2, p, epsp); |