Trait nannou::geom::polyline::cap::Cap[][src]

pub trait Cap {
    type Scalar;
    type Triangles: Iterator<Item = Tri<Point2<Self::Scalar>>> + Clone;
    fn triangles(self) -> Self::Triangles;
}

Types that describe line caps.

Associated Types

The scalar value used to describe points over the x and y axes.

An iterator yielding triangles that describe the line cap.

Required Methods

Produce the Triangles given the start and end of the line cap and the line's thickness.

Implementors