Skip to main content

parallel_aabb_pairs

Function parallel_aabb_pairs 

Source
pub fn parallel_aabb_pairs(
    aabbs: &[([f64; 3], [f64; 3])],
) -> Vec<(usize, usize)>
Expand description

Parallel AABB overlap detection.

Returns all pairs (i, j) with i < j whose axis-aligned bounding boxes overlap. The outer loop runs in parallel; each thread contributes matching pairs into a local vector that is then flattened.