pub fn path_metrics(
origin: [f64; 3],
dir: [f64; 3],
site: [f64; 3],
) -> (f64, f64)Expand description
Distance along the path and squared impact parameter of site for a path
starting at origin with unit direction dir:
s = (site - origin) . dir, p² = |(site - origin) - s dir|².
This is the one formula used for the boundary comparisons; see the module docs.