bSpline

fun <T : LinearType<T>> List<T>.bSpline(degree: Int = 3, closed: Boolean = false): BSpline<T>(source)

The B-spline with this control polygon: BSpline.clamped for an open polygon, BSpline.periodic for a closed one. The degree is reduced where there are too few control points for it.