app
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
app
app
/
com.minapps.trackeditor.core.domain.util
/
TrackSimplifier
Track
Simplifier
class
TrackSimplifier
@
Inject
constructor
Members
Constructors
Track
Simplifier
Link copied to clipboard
@
Inject
constructor
(
)
Functions
douglas
Peucker
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
simplify
Link copied to clipboard
suspend
fun
simplify
(
points
:
List
<
Waypoint
>
,
tolerance
:
Double
)
:
MutableList
<
Waypoint
>