Trait libreda_db::layout::prelude::BoundingBox

source ·
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§

source

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,

source§

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

source§

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

source§

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

source§

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