Skip to main content

simplify

Function simplify 

Source
pub fn simplify(points: Vec<ScreenPoint>, tolerance: f32) -> Vec<ScreenPoint>
Expand description

Ramer–Douglas–Peucker on screen positions: keep the ends and every vertex farther than tolerance from the chord of the stretch it lies in.