douglasPeucker

suspend fun douglasPeucker(points: List<Waypoint>, epsilon: Double): MutableList<Waypoint>

Apply the Ramer Douglas Peucker algorithm Iterative approach -> Recursive is to heavy

https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm

Return

Parameters

points
epsilon