Trait iron_shapes::traits::BoundingBox[][src]

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

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

Required methods

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

Return the bounding box of this geometry.

Loading content...

Implementors

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

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

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

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

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

Loading content...