pub fn discrete_frechet_distance<L1, L2>(
l1: &L1,
l2: &L2,
) -> <DefaultDistanceStrategy<<L1 as Geometry>::Point, <L2 as Geometry>::Point> as DistanceStrategy<<L1 as Geometry>::Point, <L2 as Geometry>::Point>>::Outwhere
L1: Linestring,
L2: Linestring,
<<L1::Point as Point>::Cs as CoordinateSystem>::Family: DefaultDistance<<<L2::Point as Point>::Cs as CoordinateSystem>::Family>,
DefaultDistanceStrategy<L1::Point, L2::Point>: DistanceStrategy<L1::Point, L2::Point> + Default,Expand description
Discrete Fréchet distance between two linestrings, using the default distance strategy for their coordinate systems (Pythagoras for Cartesian, Andoyer for Geographic, …).
Mirrors boost::geometry::discrete_frechet_distance(l1, l2) from
boost/geometry/algorithms/discrete_frechet_distance.hpp.
§Panics
Panics on an empty linestring — Boost throws; the Rust port panics with a clear message.