1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef BOOST_GEOMETRY_PROJECTIONS_INVALID_POINT_HPP
- #define BOOST_GEOMETRY_PROJECTIONS_INVALID_POINT_HPP
- #include <cmath>
- #include <boost/geometry/core/access.hpp>
- namespace boost { namespace geometry { namespace projections
- {
- template <typename Point>
- inline void set_invalid_point(Point & point)
- {
- geometry::set<0>(point, HUGE_VAL);
- geometry::set<1>(point, HUGE_VAL);
- }
- template <typename Point>
- inline bool is_invalid_point(Point const& point)
- {
- return geometry::get<0>(point) == HUGE_VAL;
- }
- }}}
- #endif
|