bbox

Function bbox 

Source
pub fn bbox(points: impl IntoIterator<Item = P2>) -> [f64; 4]
Expand description

Bounding box [min_x, min_y, max_x, max_y] of points; the empty set gives [+INF, +INF, -INF, -INF]. f64::min/max skip NaN, so a NaN coordinate never poisons the box.