pub trait BoundingBox<T> {
    // Required method
    fn bounding_box(&self) -> Rect<T>;
}
Expand description

Calculation of the ‘bounding box’, i.e. the smallest rectangle that contains the geometrical object.

Required Methods§

fn bounding_box(&self) -> Rect<T>

Return the bounding box of this geometry.

Implementors§

source§

impl<L> BoundingBox<<L as LayoutIds>::Coord> for CellInstanceEntry<L>where L: LayoutBase, L::Coord: PrimInt,

source§

impl<ShapeId, Coord> BoundingBox<Coord> for ShapeEntry<ShapeId, Coord>where Coord: PrimInt,

§

impl<T> BoundingBox<T> for Edge<T>where T: Copy + PartialOrd<T>,

§

impl<T> BoundingBox<T> for Point<T>where T: Copy,

§

impl<T> BoundingBox<T> for REdge<T>where T: CoordinateType,

§

impl<T> BoundingBox<T> for Rect<T>where T: Copy,