Function continuous_aabb3_aabb3

Source
pub fn continuous_aabb3_aabb3<I>(a: &Aabb3<I>, b: &Aabb3<I>) -> Option<Aabb3<I>>
where I: Integer + Debug,
Expand description

Continuous 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_eq!(
  continuous_aabb3_aabb3 (&a, &b).unwrap(),
  Aabb3::from_points ([0, 0, 0].into(), [0, 1, 1].into()));