simplify
Reduces the number of points in a polyline while retaining its shape, giving a performance boost when processing it and also reducing visual noise.
Return
an array of simplified points
Since
1.2.0
See also
Parameters
points
an array of points
highest Quality
excludes distance-based preprocessing step which leads to highest quality simplification
fun simplify(points: List<T>, tolerance: Double = SIMPLIFY_DEFAULT_TOLERANCE, highestQuality: Boolean = SIMPLIFY_DEFAULT_HIGHEST_QUALITY): List<T>
Content copied to clipboard
Reduces the number of points in a polyline while retaining its shape, giving a performance boost when processing it and also reducing visual noise.
Return
an array of simplified points
Since
1.2.0
See also
Parameters
points
an array of points
tolerance
affects the amount of simplification (in the same metric as the point coordinates)
highest Quality
excludes distance-based preprocessing step which leads to highest quality simplification