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 line. If length is higher than line length, the closest line endpoint is returned instead.