pub trait TryBoundingBox<T> {
    fn try_bounding_box(&self) -> Option<Rect<T>>;
}
Expand description

Try the calculation of the ‘bounding box’, i.e. the smallest rectangle that contains the geometrical object. In some cases this is not always possible, so the try might fail. For instance a set of polygons does not have a bounding box if the set is empty.

Required Methods

Return the bounding box of this geometry if a bounding box is defined.

Implementors