Skip to main content

box_max

Function box_max 

Source
pub fn box_max<B: Box>(b: &B) -> B::Point
where B::Point: Default + PointMut,
Expand description

Materialise the maximum corner of a box as a crate::Point value.

Mirrors b.max_corner() on model::box (boost/geometry/geometries/box.hpp:149-155). The point is built via Default::default and one set::<D> call per dimension, with each value sourced from b.get_indexed::<{ corner::MAX }, D>().

§Examples

use geometry_trait::{box_max, Box, PointMut};
fn _ex<B: Box>(b: &B) where B::Point: Default + PointMut { let _ = box_max(b); }