FROM : Robert Clair
DATE : Mon Apr 11 13:01:38 2005
> For a given set of three points, the rounded corner can
> be created using curveToPoint:controlPoint1:controlPoint2: where both
> control points are the middle point of the set (the corner). The
> endpoints of the curveTo call you'll have to calculate depending on the
> amount of curvature you want;
There is no cubic Bezier that is exactly a circular arc, the best you
can do is an approximation. However this isn't what you want - it's a
very bad approximation of an arc. Use
-[NSBezierPath
appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:]
or one of its friends.
.......Bob Clair
DATE : Mon Apr 11 13:01:38 2005
> For a given set of three points, the rounded corner can
> be created using curveToPoint:controlPoint1:controlPoint2: where both
> control points are the middle point of the set (the corner). The
> endpoints of the curveTo call you'll have to calculate depending on the
> amount of curvature you want;
There is no cubic Bezier that is exactly a circular arc, the best you
can do is an approximation. However this isn't what you want - it's a
very bad approximation of an arc. Use
-[NSBezierPath
appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:]
or one of its friends.
.......Bob Clair






Cocoa mail archive

