adaptivePositionsAndNormals

fun adaptivePositionsAndNormals(distanceTolerance: Double = 0.5): Pair<List<Vector2>, List<Vector2>>

Recursively subdivides Segment to approximate Bézier curve.

For a more detailed breakdown, see http://agg.sourceforge.net/antigrain.com/research/adaptive_bezier/index.html.

Return

A pair of lists. The first list contains positions, the second list the points' normals.

Parameters

distanceTolerance

The square of the maximal distance of each point from curve.