Trait geo::algorithm::winding_order::Winding [] [src]

pub trait Winding<T> where
    T: Float
{ fn winding_order(&self) -> Option<WindingOrder>;
fn points_cw<'a>(&'a self) -> Box<Iterator<Item = &'a Point<T>> + 'a>;
fn points_ccw<'a>(&'a self) -> Box<Iterator<Item = &'a Point<T>> + 'a>;
fn make_cw_winding(&mut self);
fn make_ccw_winding(&mut self); fn is_cw(&self) -> bool { ... }
fn is_ccw(&self) -> bool { ... }
fn clone_to_winding_order(&self, winding_order: WindingOrder) -> Self
    where
        Self: Sized + Clone
, { ... }
fn make_winding_order(&mut self, winding_order: WindingOrder) { ... } }

Calculate, and work with, the winding order

Required Methods

Return the winding order of this object

Iterate over the points in a clockwise order

The object isn't changed, and the points are returned either in order, or in reverse order, so that the resultant order makes it appear clockwise

Iterate over the points in a counter-clockwise order

The object isn't changed, and the points are returned either in order, or in reverse order, so that the resultant order makes it appear counter-clockwise

Change this objects's points so they are in clockwise winding order

Change this line's points so they are in counterclockwise winding order

Provided Methods

True iff this clockwise

True iff this is wound counterclockwise

Return a clone of this object, but in the specified winding order

Change the winding order so that it is in this winding order

Implementors