Package-level declarations
Functions
Link copied to clipboard
fun List<Vector2>.elastica(closed: Boolean, tolerance: Double = 0.01, polarity: YPolarity = YPolarity.CW_NEGATIVE_Y): ShapeContour
Converts this polyline into an elastica through all points: a minimum-energy curve (MEC), the G2 curve that minimizes its bending energy ∫κ² ds, which is the shape of a thin elastic rod threaded through pins at the points. A pin applies a force but no bending moment, so the curvature is continuous where the rod passes it.