Function nannou::geom::bounding_rect[][src]

pub fn bounding_rect<I>(
    vertices: I
) -> Option<Rect<<<I as IntoIterator>::Item as Vertex>::Scalar>> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Vertex2d
Expand description

The Rect that bounds the given sequence of vertices.

Returns None if the given iterator is empty.