1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOOST_GEOMETRY_UTIL_ORDER_AS_DIRECTION_HPP
- #define BOOST_GEOMETRY_UTIL_ORDER_AS_DIRECTION_HPP
- #include <boost/geometry/core/point_order.hpp>
- namespace boost { namespace geometry
- {
- enum iterate_direction { iterate_forward, iterate_reverse };
- template<order_selector Order>
- struct order_as_direction
- {};
- template<>
- struct order_as_direction<clockwise>
- {
- static const iterate_direction value = iterate_forward;
- };
- template<>
- struct order_as_direction<counterclockwise>
- {
- static const iterate_direction value = iterate_reverse;
- };
- }}
- #endif
|