Instance Method

appendBezierPathWithArcFromPoint:toPoint:radius:

Appends an arc to the receiver’s path.

Declaration

- (void)appendBezierPathWithArcFromPoint:(NSPoint)point1 toPoint:(NSPoint)point2 radius:(CGFloat)radius;

Parameters

fromPoint

The middle point of the angle.

toPoint

The end point of the angle.

radius

The radius of the circle inscribed in the angle.

Discussion

The created arc is defined by a circle inscribed inside the angle specified by three points: the current point, the fromPoint parameter, and the toPoint 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 fromPoint and toPoint 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 fromPoint parameter.

You must set the path's current point (using the moveToPoint: 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 NSGenericException exception.

Depending on the length of the arc, this method may add multiple connected curve segments to the path.

See Also

Appending Common Shapes to a Path

- appendBezierPath:

Appends the contents of the specified path object to the receiver’s path.

- appendBezierPathWithPoints:count:

Appends a series of line segments to the receiver’s path.

- appendBezierPathWithOvalInRect:

Appends an oval path to the receiver, inscribing the oval in the specified rectangle.

- appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:

Appends an arc of a circle to the receiver’s path.

- appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:clockwise:

Appends an arc of a circle to the receiver’s path.

- appendBezierPathWithGlyph:inFont:

Appends an outline of the specified glyph to the receiver’s path.

Deprecated
- appendBezierPathWithGlyphs:count:inFont:

Appends the outlines of the specified glyphs to the receiver’s path.

Deprecated
- appendBezierPathWithPackedGlyphs:

Appends an array of packed glyphs to the receiver’s path.

Deprecated
- appendBezierPathWithRect:

Appends a rectangular path to the receiver’s path.

- appendBezierPathWithRoundedRect:xRadius:yRadius:

Appends a rounded rectangular path to the receiver’s path.