]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/geometry/algorithms/detail/normalize.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / geometry / algorithms / detail / normalize.hpp
CommitLineData
7c673cae
FG
1// Boost.Geometry (aka GGL, Generic Geometry Library)
2
92f5a8d4 3// Copyright (c) 2015-2018, Oracle and/or its affiliates.
7c673cae
FG
4
5// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
b32b8144 6// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7c673cae
FG
7
8// Licensed under the Boost Software License version 1.0.
9// http://www.boost.org/users/license.html
10
11#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP
12#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP
13
7c673cae 14
92f5a8d4
TL
15// For backward compatibility
16#include <boost/geometry/strategies/normalize.hpp>
7c673cae
FG
17
18
19namespace boost { namespace geometry
20{
21
7c673cae
FG
22
23#ifndef DOXYGEN_NO_DETAIL
24namespace detail
25{
26
27
92f5a8d4
TL
28template <typename GeometryIn, typename GeometryOut, typename Strategy>
29inline void normalize(GeometryIn const& geometry_in, GeometryOut& geometry_out, Strategy const& )
7c673cae 30{
92f5a8d4 31 Strategy::apply(geometry_in, geometry_out);
7c673cae
FG
32}
33
92f5a8d4
TL
34template <typename GeometryOut, typename GeometryIn, typename Strategy>
35inline GeometryOut return_normalized(GeometryIn const& geometry_in, Strategy const& strategy)
7c673cae
FG
36{
37 GeometryOut geometry_out;
92f5a8d4 38 detail::normalize(geometry_in, geometry_out, strategy);
7c673cae
FG
39 return geometry_out;
40}
41
42
43} // namespace detail
44#endif // DOXYGEN_NO_DETAIL
45
46}} // namespace boost::geometry
47
48#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP