Skip to main content

make_box

Function make_box 

Source
pub fn make_box<P>(min_coords: &[P::Scalar], max_coords: &[P::Scalar]) -> Box<P>
where P: PointMut + Default,
Expand description

Construct a Box from two corner coordinate slices.

The min_coords slice fills the minimum corner and max_coords the maximum corner. Mirrors boost::geometry::make<Box>(...) from boost/geometry/algorithms/make.hpp.

§Panics

Panics if either slice is shorter than P::DIM (see make_point).