Skip to main content

closest_points

Function closest_points 

Source
pub fn closest_points(a: &Feature<'_>, b: &Feature<'_>) -> GeopResult<Closest>
Expand description

The least distance between a and b, and two points attaining it (see the module docs).

The search encloses the least distance, but the points attaining it only as sharply as the square root of that: the distance is flat where it is least. So the two points are then refined in turns, each by Newton towards the other, as long as that brings them nearer.