pub fn continuous_interval<I>(
a: &Interval<I>,
b: &Interval<I>,
) -> Option<Interval<I>>
Expand description
Continuous intersection test of 1D axis-aligned bounding boxes (intervals).
Shared boundary points will return intersection:
let a = Interval::from_points ( 0, 1);
let b = Interval::from_points (-1, 0);
assert_eq!(
continuous_interval (&a, &b).unwrap(),
Interval::from_points (0, 0));