Function farthest_point

Source
pub fn farthest_point(
    map: &DistanceMap,
    subregion: &Polygon,
    tolerance: f64,
) -> Result<Farthest, FarthestError>
Expand description

The greatest distance to the nearest target over the points of subregion in the map’s free space, bracketed to within tolerance.

§Errors

FarthestError, among them FarthestError::Unreachable with a triangle as evidence when part of the subregion reaches no target.