summaryrefslogtreecommitdiff
path: root/boost/geometry/strategies/cartesian/distance_segment_box.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/strategies/cartesian/distance_segment_box.hpp')
-rw-r--r--boost/geometry/strategies/cartesian/distance_segment_box.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/boost/geometry/strategies/cartesian/distance_segment_box.hpp b/boost/geometry/strategies/cartesian/distance_segment_box.hpp
index 80f5094a59..b623822eca 100644
--- a/boost/geometry/strategies/cartesian/distance_segment_box.hpp
+++ b/boost/geometry/strategies/cartesian/distance_segment_box.hpp
@@ -1,7 +1,8 @@
// Boost.Geometry (aka GGL, Generic Geometry Library)
-// Copyright (c) 2018 Oracle and/or its affiliates.
+// Copyright (c) 2018-2019 Oracle and/or its affiliates.
// Contributed and/or modified by Vissarion Fisikopoulos, on behalf of Oracle
+// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@@ -12,6 +13,9 @@
#include <boost/geometry/algorithms/detail/distance/segment_to_box.hpp>
+#include <boost/geometry/strategies/cartesian/distance_projected_point.hpp>
+#include <boost/geometry/strategies/cartesian/point_in_point.hpp>
+
namespace boost { namespace geometry
{
@@ -60,6 +64,13 @@ struct cartesian_segment_box
return typename distance_ps_strategy::type();
}
+ typedef within::cartesian_point_point equals_point_point_strategy_type;
+
+ static inline equals_point_point_strategy_type get_equals_point_point_strategy()
+ {
+ return equals_point_point_strategy_type();
+ }
+
template <typename LessEqual, typename ReturnType,
typename SegmentPoint, typename BoxPoint>
inline ReturnType segment_below_of_box(SegmentPoint const& p0,