diff options
Diffstat (limited to 'boost/geometry/strategies/cartesian/distance_projected_point.hpp')
-rw-r--r-- | boost/geometry/strategies/cartesian/distance_projected_point.hpp | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/boost/geometry/strategies/cartesian/distance_projected_point.hpp b/boost/geometry/strategies/cartesian/distance_projected_point.hpp index bd4f7130ca..16515a7a2c 100644 --- a/boost/geometry/strategies/cartesian/distance_projected_point.hpp +++ b/boost/geometry/strategies/cartesian/distance_projected_point.hpp @@ -4,8 +4,8 @@ // Copyright (c) 2008-2014 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2009-2014 Mateusz Loskot, London, UK. -// This file was modified by Oracle on 2014, 2018. -// Modifications copyright (c) 2014-2018, Oracle and/or its affiliates. +// This file was modified by Oracle on 2014, 2018, 2019. +// Modifications copyright (c) 2014-2019, 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 @@ -38,6 +38,7 @@ #include <boost/geometry/strategies/default_distance_result.hpp> #include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp> #include <boost/geometry/strategies/cartesian/point_in_point.hpp> +#include <boost/geometry/strategies/cartesian/intersection.hpp> #include <boost/geometry/util/select_coordinate_type.hpp> @@ -80,6 +81,26 @@ class projected_point public : typedef within::cartesian_point_point equals_point_point_strategy_type; + typedef intersection::cartesian_segments + < + CalculationType + > relate_segment_segment_strategy_type; + + static inline relate_segment_segment_strategy_type get_relate_segment_segment_strategy() + { + return relate_segment_segment_strategy_type(); + } + + typedef within::cartesian_winding + < + void, void, CalculationType + > point_in_geometry_strategy_type; + + static inline point_in_geometry_strategy_type get_point_in_geometry_strategy() + { + return point_in_geometry_strategy_type(); + } + // The three typedefs below are necessary to calculate distances // from segments defined in integer coordinates. |