File indexing completed on 2025-01-18 09:35:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP
0012 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP
0013
0014
0015
0016 #include <boost/geometry/strategies/normalize.hpp>
0017
0018
0019 namespace boost { namespace geometry
0020 {
0021
0022
0023 #ifndef DOXYGEN_NO_DETAIL
0024 namespace detail
0025 {
0026
0027
0028 template <typename GeometryIn, typename GeometryOut, typename Strategy>
0029 inline void normalize(GeometryIn const& geometry_in, GeometryOut& geometry_out, Strategy const& )
0030 {
0031 Strategy::apply(geometry_in, geometry_out);
0032 }
0033
0034 template <typename GeometryOut, typename GeometryIn, typename Strategy>
0035 inline GeometryOut return_normalized(GeometryIn const& geometry_in, Strategy const& strategy)
0036 {
0037 GeometryOut geometry_out;
0038 detail::normalize(geometry_in, geometry_out, strategy);
0039 return geometry_out;
0040 }
0041
0042
0043 }
0044 #endif
0045
0046 }}
0047
0048 #endif