Struct nannou::geom::line::Capped[][src]

pub struct Capped<S = Default> {
    pub line: Line<S>,
    pub cap: Cap,
}

A line whose ends are capped with protruding geometry (either rounded or squared).

Fields

The line itself.

The kind of geometry with which the line is capped.

Methods

impl<S> Capped<S> where
    S: BaseFloat
[src]

Important traits for CappedVertices<S>

The vertices encompassing the entire line and caps.

The polygon representing the capped line.

This can be useful for taking advantage of polygon methods including triangles, contains, bounding_rect, etc.

Trait Implementations

impl<S> From<Capped<S>> for Line<S> where
    S: BaseFloat
[src]

Performs the conversion.

impl<S: Copy> Copy for Capped<S>
[src]

impl<S: Clone> Clone for Capped<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Capped<S>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Capped<S>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<S> Send for Capped<S> where
    S: Send

impl<S> Sync for Capped<S> where
    S: Sync