Skip to main content

rdp

Function rdp 

Source
pub fn rdp(points: &[(f64, f64)], epsilon: f64) -> Vec<(f64, f64)>
Expand description

Runs Ramer–Douglas–Peucker, keeping both endpoints; the result has ≥ 2 points.