12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP
- #define BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP
- #include <stddef.h>
- #include <boost/geometry/core/coordinate_type.hpp>
- #include <boost/geometry/policies/robustness/robust_point_type.hpp>
- #include <boost/geometry/policies/robustness/segment_ratio.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail
- {
- struct no_rescale_policy
- {
- static bool const enabled = false;
-
- template <std::size_t Dimension, typename Value>
- inline Value const& apply(Value const& value) const
- {
- return value;
- }
- };
- }
- #endif
- template <typename Point>
- struct robust_point_type<Point, detail::no_rescale_policy>
- {
-
- typedef Point type;
- };
- }}
- #endif
|