Function ramer_douglas_peucker::rdp [−][src]
pub fn rdp<T, U>(points: &[Point2<T>], epsilon: f64) -> Vec<usize> where
T: Copy + Sub<Output = U>,
U: NumCast,
T: NumCast,
Given a set of points and an epsilon, returns a list of indexes to keep.
If the first and last points are the same, then the points are treated as a closed polygon