Package-level declarations

Functions

Link copied to clipboard
tailrec fun chaikinSmooth(polyline: List<Vector2>, iterations: Int = 1, closed: Boolean = false, bias: Double = 0.25): List<Vector2>

Chaikin's corner cutting algorithm generates an approximating curve from a polyline

Link copied to clipboard
fun simplify(points: List<Vector2>, epsilon: Double): List<Vector2>

The Ramer–Douglas–Peucker algorithm, is an algorithm that decimates a curve composed of line segments to a similar curve with fewer points.