Trait libreda_pnr::db::BoundingBox [−]
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.
Implementors
impl<T> BoundingBox<T> for Edge<T> where
T: CoordinateType,
T: CoordinateType,
pub fn bounding_box(&self) -> Rect<T>
impl<T> BoundingBox<T> for REdge<T> where
T: CoordinateType,
T: CoordinateType,
pub fn bounding_box(&self) -> Rect<T>
impl<T> BoundingBox<T> for Rect<T> where
T: CoordinateType,
T: CoordinateType,
pub fn bounding_box(&self) -> Rect<T>
Get bounding box of rectangle (which is equal to the rectangle itself).