ramer Douglas Peucker
Takes a list of objects representing a polyline with a xExtractor and yExtractor functions and applies the Ramer-Douglas-Peucker (RDP) algorithm returning the resulting list.
Receiver
A list of any data type that you wish to apply the Ramer-Douglas-Peucker algorithm to.
Return
A List
Parameters
The type of the data points you wish to simplify
The epsilon in the RDP algorithm
A function that given an input T can extract the x value
A function that given an input T can extract the y value
Optional function that transforms the x value sent to the simplification algorithms but not what is returned by the simplification.
Optional function that transforms the y value sent to the simplification algorithms but not what is returned by the simplification.