]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/geometry/strategies/closest_points/cartesian.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / strategies / closest_points / cartesian.hpp
CommitLineData
1e59de90
TL
1// Boost.Geometry
2
3// Copyright (c) 2021, Oracle and/or its affiliates.
4
5// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
6
7// Licensed under the Boost Software License version 1.0.
8// http://www.boost.org/users/license.html
9
10#ifndef BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
11#define BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
12
13
14//#include <boost/geometry/strategies/cartesian/azimuth.hpp>
15
16//#include <boost/geometry/strategies/cartesian/distance_projected_point.hpp>
17//#include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp>
18#include <boost/geometry/strategies/cartesian/distance_pythagoras_box_box.hpp>
19#include <boost/geometry/strategies/cartesian/distance_pythagoras_point_box.hpp>
20#include <boost/geometry/strategies/cartesian/distance_segment_box.hpp>
21
22#include <boost/geometry/strategies/cartesian/closest_points_pt_seg.hpp>
23
24#include <boost/geometry/strategies/detail.hpp>
25#include <boost/geometry/strategies/distance/detail.hpp>
26#include <boost/geometry/strategies/closest_points/services.hpp>
27
28//#include <boost/geometry/strategies/normalize.hpp>
29#include <boost/geometry/strategies/distance/cartesian.hpp>
30
31#include <boost/geometry/util/type_traits.hpp>
32
33
34namespace boost { namespace geometry
35{
36
37namespace strategies { namespace closest_points
38{
39
40template <typename CalculationType = void>
41struct cartesian
42 : public strategies::distance::cartesian<CalculationType>
43{
44 template <typename Geometry1, typename Geometry2>
45 static auto closest_points(Geometry1 const&, Geometry2 const&,
46 distance::detail::enable_if_ps_t<Geometry1, Geometry2> * = nullptr)
47 {
48 return strategy::closest_points::projected_point<CalculationType>();
49 }
50};
51
52
53namespace services
54{
55
56template <typename Geometry1, typename Geometry2>
57struct default_strategy<Geometry1, Geometry2, cartesian_tag, cartesian_tag>
58{
59 using type = strategies::closest_points::cartesian<>;
60};
61
62} // namespace services
63
64}} // namespace strategies::closest_points
65
66}} // namespace boost::geometry
67
68#endif // BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP