Function discrete_aabb3_aabb3

Source
pub fn discrete_aabb3_aabb3<I>(a: &Aabb3<I>, b: &Aabb3<I>) -> bool
where I: Integer,
Expand description

Discrete intersection test of 3D axis-aligned bounding boxes.

Shared boundary points will return intersection:

let a = Aabb3::from_points ([ 0, 0,  0].into(), [1, 1, 1].into());
let b = Aabb3::from_points ([-1, 0,  0].into(), [0, 1, 1].into());
assert!(discrete_aabb3_aabb3 (&a, &b));