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

Point type used for the vertices.

Type used for the polygon segments.

Iterator over all points.

Required Methods

Get number of polygons.

Add the point p to all vertices.

Add the point p to all vertices.

Multiply all vertices with a factor.

Multiply all vertices with a factor.

Iterate over all vertices.

Implementors