pub trait PerpDistance {
// Required method
fn d_perp_m(&self, a: LngLat, b: LngLat, p: LngLat) -> f64;
}Expand description
Trait for calculating perpendicular distance from a point to a line segment.
This abstraction allows the Douglas-Peucker algorithm to work with different distance calculation methods without changing the core algorithm.