Skip to main content

distance

Function distance 

Source
pub fn distance<A, B>(
    a: &A,
    b: &B,
) -> <DefaultDistanceStrategy<A, B> as DistanceStrategy<A, B>>::Out
Expand description

Distance between two geometries using the default strategy for their coordinate-system pair.

Mirrors the no-strategy overload of boost::geometry::distance(g1, g2) from boost/geometry/algorithms/distance.hpp and the dispatch in boost/geometry/algorithms/detail/distance/interface.hpp. The default strategy is resolved via DefaultDistanceStrategy, which is the Rust analogue of Boost’s boost::geometry::strategy::distance::services::default_strategy<…>::type.