Moves the receiver’s current point to a new point whose location is the specified distance from the current point.
- macOS 10.0+
A point whose coordinates are interpreted as a relative offset from the current point.
This method implicitly closes the current subpath (if any) and updates the location of the current point. For example, if the current point is (1, 1) and
a contains the value (1, 2), the previous subpath would be closed and the current point would become (2, 3). When closing the previous subpath, this method does not cause a line to be created from the first and last points in the subpath.
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