TrackSimplifier

class TrackSimplifier @Inject constructor

Constructors

Link copied to clipboard
@Inject
constructor()

Functions

Link copied to clipboard
suspend fun douglasPeucker(points: List<Waypoint>, epsilon: Double): MutableList<Waypoint>

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

Link copied to clipboard
suspend fun simplify(points: List<Waypoint>, tolerance: Double): MutableList<Waypoint>