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: CoordinateType> BoundingBox<T> for REdge<T>

Source§

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

Source§

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

Source§

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