Trait 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<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,