pub fn continuous_interval<S>(
a: Interval<S>,
b: Interval<S>,
) -> Option<Interval<S>>where
S: OrderedRing,Available on crate feature
math-utils only.Expand description
Continuous intersection test of 1D axis-aligned bounding boxes (intervals).
AABBs that are merely touching return no intersection:
let a = Interval::with_minmax ( 0.0, 1.0).unwrap();
let b = Interval::with_minmax (-1.0, 0.0).unwrap();
assert!(continuous_interval (a, b).is_none());