]> git.proxmox.com Git - ceph.git/blame - 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
CommitLineData
7c673cae
FG
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
92f5a8d4
TL
8// This file was modified by Oracle on 2015-2018.
9// Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
7c673cae 10
b32b8144 11// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
7c673cae 12// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
b32b8144 13// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7c673cae
FG
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
7c673cae 25
92f5a8d4 26#include <boost/geometry/algorithms/dispatch/expand.hpp>
7c673cae 27
7c673cae
FG
28#include <boost/geometry/core/tags.hpp>
29
92f5a8d4
TL
30// For backward compatibility
31#include <boost/geometry/strategies/cartesian/expand_point.hpp>
32#include <boost/geometry/strategies/spherical/expand_point.hpp>
7c673cae
FG
33
34
35namespace boost { namespace geometry
36{
37
7c673cae
FG
38#ifndef DOXYGEN_NO_DISPATCH
39namespace dispatch
40{
41
42
43// Box + point -> new box containing also point
44template
45<
92f5a8d4 46 typename BoxOut, typename Point
7c673cae
FG
47>
48struct expand
49 <
50 BoxOut, Point,
92f5a8d4 51 box_tag, point_tag
b32b8144 52 >
7c673cae 53{
92f5a8d4
TL
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 }
7c673cae
FG
61};
62
b32b8144 63
7c673cae
FG
64
65} // namespace dispatch
66#endif // DOXYGEN_NO_DISPATCH
67
68}} // namespace boost::geometry
69
70#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_POINT_HPP