Trait iron_shapes::concepts::Polygon90
source · [−]pub trait Polygon90<C: CoordinateConcept>: Polygon<C> + Polygon90WithHoles<C> {
type CompactIterator: Iterator<Item = C::Coord>;
fn compact_iter(&self) -> Self::CompactIterator;
}
Expand description
Concept of a polygon with axis-aligned edges. The polygon consists of a single closed loop of vertices, i.e. has no holes.
Required Associated Types
type CompactIterator: Iterator<Item = C::Coord>
type CompactIterator: Iterator<Item = C::Coord>
Iterator over alternating x/y coordinates of the points. Starts with an x coordinate.
Required Methods
fn compact_iter(&self) -> Self::CompactIterator
fn compact_iter(&self) -> Self::CompactIterator
Iterate over alternating x/y coordinates of the polygon vertices. Start with an x coordinate.