Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:35:18

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2015-2018, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
0006 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0007 
0008 // Licensed under the Boost Software License version 1.0.
0009 // http://www.boost.org/users/license.html
0010 
0011 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP
0012 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP
0013 
0014 
0015 // For backward compatibility
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 } // namespace detail
0044 #endif // DOXYGEN_NO_DETAIL
0045 
0046 }} // namespace boost::geometry
0047 
0048 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_NORMALIZE_HPP