pub enum PointOrder {
Clockwise,
CounterClockwise,
}Expand description
Vertex traversal direction of a ring’s boundary.
Mirrors boost::geometry::order_selector from
boost/geometry/core/point_order.hpp.
§Examples
use geometry_trait::PointOrder;
assert_ne!(PointOrder::Clockwise, PointOrder::CounterClockwise);Variants§
Clockwise
Points are ordered clockwise.
Mirrors boost::geometry::clockwise (value 1) from
boost/geometry/core/point_order.hpp. This is the Boost
default (traits::point_order<G>::value = clockwise), and the
default returned by crate::Ring::point_order.
CounterClockwise
Points are ordered counter-clockwise.
Mirrors boost::geometry::counterclockwise (value 2) from
boost/geometry/core/point_order.hpp.
Trait Implementations§
Source§impl Clone for PointOrder
impl Clone for PointOrder
Source§fn clone(&self) -> PointOrder
fn clone(&self) -> PointOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PointOrder
Source§impl Debug for PointOrder
impl Debug for PointOrder
impl Eq for PointOrder
Source§impl Hash for PointOrder
impl Hash for PointOrder
Source§impl PartialEq for PointOrder
impl PartialEq for PointOrder
impl StructuralPartialEq for PointOrder
Auto Trait Implementations§
impl Freeze for PointOrder
impl RefUnwindSafe for PointOrder
impl Send for PointOrder
impl Sync for PointOrder
impl Unpin for PointOrder
impl UnsafeUnpin for PointOrder
impl UnwindSafe for PointOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more