Trait iron_shapes::concepts::PolygonSet
source · [−]pub trait PolygonSet<C: CoordinateConcept>: IntoSegments<C> {
type Point: PointConcept<C>;
type Segment: Segment<C, Point = Self::Point>;
type AllPoints: Iterator<Item = Self::Point>;
fn num_polygons(&self) -> usize;
fn convolved(self, p: &Self::Point) -> Self;
fn convolve(&mut self, p: &Self::Point);
fn scaled(self, scale: C::Coord) -> Self;
fn scale(&mut self, scale: C::Coord);
fn all_points(&self) -> Self::AllPoints;
}
Expand description
Set of multiple polygons edges.
Required Associated Types
type Point: PointConcept<C>
type Point: PointConcept<C>
Point type used for the vertices.
Required Methods
fn num_polygons(&self) -> usize
fn num_polygons(&self) -> usize
Get number of polygons.
fn all_points(&self) -> Self::AllPoints
fn all_points(&self) -> Self::AllPoints
Iterate over all vertices.