Function rdp

Source
pub fn rdp<T, U>(points: &[Point2<T>], epsilon: f64) -> Vec<usize>
where T: Copy + Sub<Output = U> + NumCast, U: NumCast,
Expand description

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