discrete_aabb2_aabb2

Function discrete_aabb2_aabb2 

Source
pub fn discrete_aabb2_aabb2<I: Integer>(a: &Aabb2<I>, b: &Aabb2<I>) -> bool
Expand description

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

Shared boundary points will return intersection:

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