Trait libreda_db::prelude::BoundingBox[][src]

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>[src]

Return the bounding box of this geometry.

Loading content...

Implementors

impl<T> BoundingBox<T> for Edge<T> where
    T: CoordinateType
[src]

impl<T> BoundingBox<T> for REdge<T> where
    T: CoordinateType
[src]

impl<T> BoundingBox<T> for Rect<T> where
    T: CoordinateType
[src]

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

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

Loading content...