Function crater::get_bounds

source ·
pub fn get_bounds<'a, R>(
    points: impl IntoIterator<Item = &'a R::Point>
) -> Option<R>
where R: 'a + KdRegion,
Expand description

Get the bounding box of a set of points. For cuboid::CuRegion and cuboid::CuPoint, this will be an AABB (Axis Aligned Bounding Box). For general KdRegion, the bounds are not required to be tight