Appends a straight line segment to the receiver’s path starting at the current point and moving towards the specified point, relative to the current location.
- macOS 10.0+
A point whose coordinates are interpreted as a relative offset from the current point.
The destination point is relative to the current point. For example, if the current point is (1, 1) and
a contains the value (1, 2), a line segment is created between the points (1, 1) and (2, 3).
You must set the path's current point (using the
move(to:) method or through the creation of a preceding line or curve segment) before you invoke this method. If the path is empty, this method raises an