pub trait Rectangle<C: CoordinateConcept>: Polygon90<C> {
    type Interval: Interval<C::Coord>;

    // Required method
    fn get(&self, orientation: Orientation2D) -> Self::Interval;
}
Expand description

Concept of an axis-aligned rectangle.

Required Associated Types§

source

type Interval: Interval<C::Coord>

Type used for representing a one-dimensional interval.

Required Methods§

source

fn get(&self, orientation: Orientation2D) -> Self::Interval

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

Implementors§