split

fun split(t: Double): Array<Segment>

Splits the path into one or two parts, depending on if the cut was successful.

Return

An array of parts, depending on the split point this is one or two entries long.

Parameters

t

The point at which to split the Segment at.