|
||||
File indexing completed on 2025-01-18 09:35:37
0001 // Boost.Geometry (aka GGL, Generic Geometry Library) 0002 0003 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. 0004 0005 // This file was modified by Oracle on 2017, 2018. 0006 // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates. 0007 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle 0008 0009 // Use, modification and distribution is subject to the Boost Software License, 0010 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 0011 // http://www.boost.org/LICENSE_1_0.txt) 0012 0013 #ifndef BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP 0014 #define BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP 0015 0016 #include <cmath> 0017 0018 namespace boost { namespace geometry { namespace projections 0019 { 0020 0021 // Functions to resolve ambiguity when compiling with coordinates of different types 0022 /* 0023 template <typename T> 0024 inline T atan2(T const& a, T const& b) 0025 { 0026 using std::atan2; 0027 return atan2(a, b); 0028 } 0029 */ 0030 0031 template <typename T> 0032 inline int int_floor(T const& f) 0033 { 0034 using std::floor; 0035 return int(floor(f)); 0036 } 0037 0038 }}} // namespace boost::geometry::projections 0039 0040 #endif // BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |