Skip to main content

comparable_distance_with

Function comparable_distance_with 

Source
pub fn comparable_distance_with<A, B, S>(a: &A, b: &B, strategy: S) -> S::Out
where A: Geometry, B: Geometry, S: DistanceStrategy<A, B>,
Expand description

Comparable distance using an explicitly supplied strategy.

Mirrors the strategy overload of boost::geometry::comparable_distance from boost/geometry/algorithms/detail/comparable_distance/interface.hpp:226-254. The supplied strategy is converted through DistanceStrategy::comparable before the distance is evaluated.