]>
Commit | Line | Data |
---|---|---|
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 | ||
19 | namespace boost { namespace geometry | |
20 | { | |
21 | ||
7c673cae FG |
22 | |
23 | #ifndef DOXYGEN_NO_DETAIL | |
24 | namespace detail | |
25 | { | |
26 | ||
27 | ||
92f5a8d4 TL |
28 | template <typename GeometryIn, typename GeometryOut, typename Strategy> |
29 | inline 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 |
34 | template <typename GeometryOut, typename GeometryIn, typename Strategy> |
35 | inline 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 |