sampleLinear

fun sampleLinear(distanceTolerance: Double = 0.5): ShapeContour(source)

Adaptively samples the contour into a new ShapeContour of linear Segments while still approximating the original contour.

Return

A ShapeContour composed of linear Segments

Parameters

distanceTolerance

Controls the precision of the approximation, higher values result in lower accuracy.