Struct nannou::geom::polyline::Polyline[][src]

pub struct Polyline<C, J, I, S = DefaultScalar> {
    pub cap: C,
    pub join: J,
    pub points: I,
    pub thickness: S,
}

A polyline described by a list of connected points joined by the given join style and ending with the given cap style,

A Polyline can be triangulated using the triangles() method.

You can check if a Polyline contains a given point using the contains(&point) method.

Fields

Methods

impl<C, J, I, S> Polyline<C, J, I, S> where
    C: Copy,
    Tris<C, S>: Cap,
    I: Iterator<Item = Point2<S>>,
    S: BaseFloat
[src]

Important traits for Parts<C, J, I, S>

Produce an iterator yielding all Parts that make up the polyline.

impl<C, J, I, S> Polyline<C, J, I, S> where
    C: Copy,
    J: Copy,
    Tris<J, S>: Join<Scalar = S>,
    Tris<C, S>: Cap<Scalar = S>,
    I: Iterator<Item = Point2<S>>,
    S: BaseFloat,
    Point2<S>: Vertex<Scalar = S>, 
[src]

Important traits for Triangles<C, J, I, S>

Produce an iterator yielding all triangles that make up the polyline.

The bounding Rect of the polyline.

This method triangulates the polyline (with joins, caps, etc) to ensure we get the actual bounds (not just the bounds of the points that describe the line).

Returns None if the polyline contains no points.

Trait Implementations

impl<C: Clone, J: Clone, I: Clone, S: Clone> Clone for Polyline<C, J, I, S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: Debug, J: Debug, I: Debug, S: Debug> Debug for Polyline<C, J, I, S>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<C, J, I, S> Send for Polyline<C, J, I, S> where
    C: Send,
    I: Send,
    J: Send,
    S: Send

impl<C, J, I, S> Sync for Polyline<C, J, I, S> where
    C: Sync,
    I: Sync,
    J: Sync,
    S: Sync