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

pub trait Winding<T> where
    T: CoordinateType
{ fn winding_order(&self) -> Option<WindingOrder>;
fn points_cw(&self) -> Points<'_, T>

Notable traits for Points<'a, T>

impl<'a, T> Iterator for Points<'a, T> where
    T: CoordinateType
type Item = Point<T>;
;
fn points_ccw(&self) -> Points<'_, T>

Notable traits for Points<'a, T>

impl<'a, T> Iterator for Points<'a, T> where
    T: CoordinateType
type Item = Point<T>;
;
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

fn winding_order(&self) -> Option<WindingOrder>

Return the winding order of this object

fn points_cw(&self) -> Points<'_, T>

Notable traits for Points<'a, T>

impl<'a, T> Iterator for Points<'a, T> where
    T: CoordinateType
type Item = Point<T>;

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

fn points_ccw(&self) -> Points<'_, T>

Notable traits for Points<'a, T>

impl<'a, T> Iterator for Points<'a, T> where
    T: CoordinateType
type Item = Point<T>;

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

fn make_cw_winding(&mut self)

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

fn make_ccw_winding(&mut self)

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

Loading content...

Provided methods

fn is_cw(&self) -> bool

True iff this clockwise

fn is_ccw(&self) -> bool

True iff this is wound counterclockwise

fn clone_to_winding_order(&self, winding_order: WindingOrder) -> Self where
    Self: Sized + Clone

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

fn make_winding_order(&mut self, winding_order: WindingOrder)

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

Loading content...

Implementors

impl<T> Winding<T> for LineString<T> where
    T: CoordinateType
[src]

fn winding_order(&self) -> Option<WindingOrder>[src]

Returns the winding order of this line None if the winding order is undefined.

fn points_cw(&self) -> Points<'_, T>

Notable traits for Points<'a, T>

impl<'a, T> Iterator for Points<'a, T> where
    T: CoordinateType
type Item = Point<T>;
[src]

Iterate over the points in a clockwise order

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

fn points_ccw(&self) -> Points<'_, T>

Notable traits for Points<'a, T>

impl<'a, T> Iterator for Points<'a, T> where
    T: CoordinateType
type Item = Point<T>;
[src]

Iterate over the points in a counter-clockwise order

The Linestring 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

fn make_cw_winding(&mut self)[src]

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

fn make_ccw_winding(&mut self)[src]

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

Loading content...