line.pointAtLength(length)

Return a point on the line that lies length away from the beginning of the line.

If negative length is provided, the algorithm starts looking from the end of the curve. If length is higher than curve length, the closest line endpoint is returned instead.