Skip to main content

cloud_distances

Function cloud_distances 

Source
pub fn cloud_distances(
    a: &PointCloud,
    b: &PointCloud,
) -> Result<CloudDistances, SpatialError>
Expand description

Computes directed NN distance statistics between a and b in both directions with a single KD-tree per side.

Large query sides share their target tree across bounded scoped CPU workers. A reusable window holds at most one default point chunk per worker. Distance accumulation retains input order; small/one-worker sides remain serial.