Package-level declarations
Types
Link copied to clipboard
How biarcs derives the tangent at every point when no tangents are given.
Functions
Link copied to clipboard
fun biarc(start: Vector2, startTangent: Vector2, end: Vector2, endTangent: Vector2, offset: Double = 0.0, polarity: YPolarity = YPolarity.CW_NEGATIVE_Y): ShapeContour
The biarc from start leaving in startTangent to end arriving in endTangent, see List.biarcs.
Link copied to clipboard
fun List<Vector2>.biarcs(closed: Boolean, tangents: List<Vector2>? = null, tangentMethod: BiarcTangents = BiarcTangents.CatmullRom(), offset: Double = 0.0, polarity: YPolarity = YPolarity.CW_NEGATIVE_Y): ShapeContour
Converts this polyline into a contour of biarcs: every pair of consecutive points is joined by two circular arcs that leave the first point in its tangent direction, meet tangentially at a joint, and arrive at the second point in its tangent direction. Unlike org.openrndr.extra.shapes.arcer.arcer, every edge is fixed by its own end tangents, so the contour is tangent-continuous everywhere, also where it closes, and an edge doesn't influence the edges after it.