pub fn spatial_join(
points_a: &[Vec3],
points_b: &[Vec3],
r: f64,
) -> Vec<(usize, usize)>Expand description
Spatial join: find all pairs (i, j) from two point sets within distance r.
Returns unique pairs (i, j) where point i is from set A and j from set B.