Skip to main content

simplify_path

Function simplify_path 

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

Ramer–Douglas–Peucker path simplification: keep the points that matter, drop the mouse jitter. epsilon is the maximum distance a dropped point may sit from the simplified path.