splitAtBase

fun <T : EuclideanVector<T>> Path<T>.splitAtBase(ascendingTs: List<Double>, weldEpsilon: Double = 1.0E-6): List<Path<T>>(source)

Splits the path at the given normalized parameter values (ascendingTs) and returns a list of subpaths.

Return

a list of subpaths representing the segments of the original path split at the specified parameter values. If the path is empty or ascendingTs is empty, the method returns a list containing the original path.

Parameters

ascendingTs

a list of normalized parameter values (from 0.0 to 1.0) specifying where the path should be split. The list must be in ascending order.

weldEpsilon

a small tolerance value used to merge closely adjacent parameter values; defaults to 1E-6.


fun <T : EuclideanVector<T>> BezierSegment<T>.splitAtBase(ascendingTs: List<Double>, weldEpsilon: Double = 1.0E-6): List<BezierSegment<T>>(source)