periodic

fun <T : LinearType<T>> periodic(controlPoints: List<T>, degree: Int = 3): BSpline<T>(source)

The closed spline on uniform knots: the first p control points are repeated at the end, so that the curve returns to where it started with continuous derivatives up to order p - 1. It doesn't pass through the control points.