Skip to main content

visvalingam

Function visvalingam 

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

Runs Visvalingam–Whyatt: it repeatedly removes the interior point whose triangle (prev, point, next) has the smallest area, while that area is < min_area. Ties break on the lower index for reproducible builds.