Appends an arc to the receiver’s path.
- macOS 10.0+
The middle point of the angle.
The end point of the angle.
The radius of the circle inscribed in the angle.
The created arc is defined by a circle inscribed inside the angle specified by three points: the current point, the
from parameter, and the
to parameter (in that order). The arc itself lies on the perimeter of the circle, whose radius is specified by the
radius parameter. The arc is drawn between the two points of the circle that are tangent to the two legs of the angle.
The arc usually does not contain the points in the
to parameters. If the starting point of the arc does not coincide with the current point, a line is drawn between the two points. The starting point of the arc lies on the line defined by the current point and the
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
Depending on the length of the arc, this method may add multiple connected curve segments to the path.