fun lineTo(endPosition: Vector2d): T
Adds a line segment with tangent heading interpolation.
endPosition - end position
endPosition