1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
5 // This file was modified by Oracle on 2016-2020.
6 // Modifications copyright (c) 2016-2020, Oracle and/or its affiliates.
7 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
9 // Use, modification and distribution is subject to the Boost Software License,
10 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
13 #ifndef BOOST_GEOMETRY_STRATEGIES_INTERSECTION_HPP
14 #define BOOST_GEOMETRY_STRATEGIES_INTERSECTION_HPP
17 //#include <type_traits>
19 #include <boost/geometry/policies/relate/intersection_policy.hpp>
20 #include <boost/geometry/policies/robustness/segment_ratio_type.hpp>
22 #include <boost/geometry/strategies/intersection.hpp>
23 #include <boost/geometry/strategies/intersection_result.hpp>
24 #include <boost/geometry/strategies/side.hpp>
26 #include <boost/geometry/strategies/cartesian/intersection.hpp>
27 #include <boost/geometry/strategies/cartesian/side_by_triangle.hpp>
28 #include <boost/geometry/strategies/spherical/intersection.hpp>
29 #include <boost/geometry/strategies/spherical/ssf.hpp>
32 namespace boost { namespace geometry
37 \brief "compound strategy", containing a segment-intersection-strategy
45 typename IntersectionPoint,
46 typename RobustPolicy,
47 typename CalculationType = void
49 struct intersection_strategies
52 // for development BOOST_STATIC_ASSERT((! std::is_same<RobustPolicy, void>::type::value));
54 typedef segment_intersection_points
57 typename detail::segment_ratio_type
59 IntersectionPoint, RobustPolicy
64 typedef policies::relate::segments_intersection_policy
67 > intersection_policy_type;
69 typedef typename strategy::intersection::services::default_strategy
73 >::type segment_intersection_strategy_type;
75 typedef typename strategy::side::services::default_strategy
79 >::type side_strategy_type;
81 typedef RobustPolicy rescale_policy_type;
85 }} // namespace boost::geometry
88 #endif // BOOST_GEOMETRY_STRATEGIES_INTERSECTION_HPP