]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/algorithms/detail/expand/point.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / geometry / algorithms / detail / expand / point.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
6 // Copyright (c) 2014-2015 Samuel Debionne, Grenoble, France.
7
8 // This file was modified by Oracle on 2015-2018.
9 // Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
10
11 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
12 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
13 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
14
15 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
16 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
17
18 // Distributed under the Boost Software License, Version 1.0.
19 // (See accompanying file LICENSE_1_0.txt or copy at
20 // http://www.boost.org/LICENSE_1_0.txt)
21
22 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_POINT_HPP
23 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_POINT_HPP
24
25
26 #include <boost/geometry/algorithms/dispatch/expand.hpp>
27
28 #include <boost/geometry/core/tags.hpp>
29
30 // For backward compatibility
31 #include <boost/geometry/strategies/cartesian/expand_point.hpp>
32 #include <boost/geometry/strategies/spherical/expand_point.hpp>
33
34
35 namespace boost { namespace geometry
36 {
37
38 #ifndef DOXYGEN_NO_DISPATCH
39 namespace dispatch
40 {
41
42
43 // Box + point -> new box containing also point
44 template
45 <
46 typename BoxOut, typename Point
47 >
48 struct expand
49 <
50 BoxOut, Point,
51 box_tag, point_tag
52 >
53 {
54 template <typename Strategy>
55 static inline void apply(BoxOut& box,
56 Point const& point,
57 Strategy const& )
58 {
59 Strategy::apply(box, point);
60 }
61 };
62
63
64
65 } // namespace dispatch
66 #endif // DOXYGEN_NO_DISPATCH
67
68 }} // namespace boost::geometry
69
70 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_POINT_HPP