Trait iron_shapes::concepts::Polygon
source · pub trait Polygon<C: CoordinateConcept>: PolygonWithHoles<C> + IntoPoints<C> {
// Required method
fn set(
&mut self,
iter: impl Iterator<Item = <Self as PolygonSet<C>>::Point>
);
}Expand description
Concept of a polygon which consists of a single closed loop of vertices.
Required Methods§
sourcefn set(&mut self, iter: impl Iterator<Item = <Self as PolygonSet<C>>::Point>)
fn set(&mut self, iter: impl Iterator<Item = <Self as PolygonSet<C>>::Point>)
Set points from an iterator.