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