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

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

The Rect that bounds the given sequence of vertices.

Returns None if the given iterator is empty.