Trait iron_shapes::concepts::Rectangle
source · [−]pub trait Rectangle<C: CoordinateConcept>: Polygon90<C> {
type Interval: Interval<C::Coord>;
fn get(&self, orientation: Orientation2D) -> Self::Interval;
}
Expand description
Concept of an axis-aligned rectangle.
Required Associated Types
Required Methods
fn get(&self, orientation: Orientation2D) -> Self::Interval
fn get(&self, orientation: Orientation2D) -> Self::Interval
Get the interval which is spanned by the rectangle in the given orientation.