pub fn candidate_pairs(
boxes: &[Box3],
compared: &mut usize,
) -> Vec<(usize, usize)>Expand description
The pairs (i, j), i < j, of boxes that are not definitely apart,
in order: found by sweeping along x — the boxes sorted by where they
start, each compared only with those started before it that have not
definitely ended — counting each comparison in compared.