File indexing completed on 2025-01-18 09:36:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_PROJECTIONS_INVALID_POINT_HPP
0011 #define BOOST_GEOMETRY_PROJECTIONS_INVALID_POINT_HPP
0012
0013
0014 #include <cmath>
0015
0016 #include <boost/geometry/core/access.hpp>
0017
0018
0019 namespace boost { namespace geometry { namespace projections
0020 {
0021
0022
0023 template <typename Point>
0024 inline void set_invalid_point(Point & point)
0025 {
0026 geometry::set<0>(point, HUGE_VAL);
0027 geometry::set<1>(point, HUGE_VAL);
0028 }
0029
0030 template <typename Point>
0031 inline bool is_invalid_point(Point const& point)
0032 {
0033 return geometry::get<0>(point) == HUGE_VAL;
0034 }
0035
0036 }}}
0037
0038 #endif