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
type Scalar
The scalar value used to describe points over the x and y axes.
type Triangles: Iterator<Item = Tri<Point2<Self::Scalar>>> + Clone
An iterator yielding triangles that describe the line cap.
Required Methods
fn triangles(self) -> Self::Triangles
Produce the Triangles
given the start and end of the line cap and the line's thickness.
Implementors
impl<S> Cap for Tris<Butt, S> type Scalar = S; type Triangles = ButtTris<S>;
impl<S> Cap for Tris<Round, S> where
S: BaseFloat, type Scalar = S; type Triangles = RoundTris<S>;impl<S> Cap for Tris<Square, S> where
S: BaseFloat, type Scalar = S; type Triangles = SquareTris<S>;impl<S> Cap for Tris<Dynamic, S> where
S: BaseFloat, type Scalar = S; type Triangles = DynamicTris<S>;