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

Type used for representing a one-dimensional interval.

Required Methods

Get the interval which is spanned by the rectangle in the given orientation.

Implementors