pub fn estimate_scan_normals(
points: &[Vector2<f64>],
max_distance: f64,
) -> Vec<Option<Vector2<f64>>>Expand description
Estimates unit normals for a beam-ordered scan by local PCA.
A point gets None when fewer than two neighbors within max_distance
exist in its ±2 beam window, or when the neighborhood is not line-like.