Divide the line into two lines at the point that lies
length away from the beginning of the line.
Returns an array with two new lines without modifying the original line. If negative
length is provided, the algorithm starts looking from the end of the curve. If
length is higher than line length, the line is divided at the closest line endpoint instead.