Trait libreda_pnr::db::BoundingBox[]

pub trait BoundingBox<T> where
    T: CoordinateType
{ pub fn bounding_box(&self) -> Rect<T>; }

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

Required methods

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

Return the bounding box of this geometry.

Loading content...

Implementors

impl<T> BoundingBox<T> for Edge<T> where
    T: CoordinateType

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

impl<T> BoundingBox<T> for Rect<T> where
    T: CoordinateType

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

Get bounding box of rectangle (which is equal to the rectangle itself).

Loading content...