Shape

Trait Shape 

Source
pub trait Shape<'a> {
    // Required method
    fn points(&'a self) -> Box<dyn Iterator<Item = (f32, f32)> + 'a>;
}

Required Methods§

Source

fn points(&'a self) -> Box<dyn Iterator<Item = (f32, f32)> + 'a>

Returns an iterator over all points of the shape

Implementors§

Source§

impl<'a> Shape<'a> for Arc

Source§

impl<'a> Shape<'a> for Circle

Source§

impl<'a> Shape<'a> for Line