Skip to main content

discrete_frechet_distance

Function discrete_frechet_distance 

Source
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>>::Out
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.