Struct nannou::geom::line::Capped [−][src]
A line whose ends are capped with protruding geometry (either rounded or squared).
Fields
line: Line<S>
The line itself.
cap: Cap
The kind of geometry with which the line is capped.
Methods
impl<S> Capped<S> where
S: BaseFloat,
[src]
impl<S> Capped<S> where
S: BaseFloat,
ⓘImportant traits for CappedVertices<S>pub fn vertices(&self) -> CappedVertices<S>
[src]
ⓘImportant traits for CappedVertices<S>
pub fn vertices(&self) -> CappedVertices<S>
The vertices encompassing the entire line and caps.
pub fn polygon(&self) -> Polygon<CappedVertices<S>>
[src]
pub fn polygon(&self) -> Polygon<CappedVertices<S>>
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]
impl<S> From<Capped<S>> for Line<S> where
S: BaseFloat,
impl<S: Copy> Copy for Capped<S>
[src]
impl<S: Copy> Copy for Capped<S>
impl<S: Clone> Clone for Capped<S>
[src]
impl<S: Clone> Clone for Capped<S>
fn clone(&self) -> Capped<S>
[src]
fn clone(&self) -> Capped<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Capped<S>
[src]
impl<S: Debug> Debug for Capped<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PartialEq> PartialEq for Capped<S>
[src]
impl<S: PartialEq> PartialEq for Capped<S>