Skip to main content

nearest

Function nearest 

Source
pub fn nearest(
    bodies: &Bodies,
    obstacles: &[Obstacle],
) -> Option<(usize, ([f64; 3], [f64; 3], f64))>
Expand description

The least clearance between the parts bodies and the obstacles: which obstacle, the nearest points and the clearance (negative in an overlap). None without parts or obstacles.