Package-level declarations

Geometry transformation functions including circle generation, Bezier splines, and simplification.

Functions

Link copied to clipboard
fun LineString.bezierSpline(resolution: Int, sharpness: Double = 0.85): LineString

Takes a LineString and returns a curved version by applying a Bezier spline algorithm.

Link copied to clipboard
fun circle(center: Point, radius: Length, steps: Int = 64): Polygon

Takes a Point and calculates the circle polygon given a radius Length and steps for precision.

fun circle(center: Position, radius: Length, steps: Int = 64): Polygon

Takes a Position and calculates the circle polygon given a radius Length and steps for precision.

Link copied to clipboard
fun LineString.simplify(tolerance: Double? = null, highestQuality: Boolean = false): LineString

Reduces the number of points in a LineString while preserving its general shape.