Re: NSBezierPath geometry question...
Re: NSBezierPath geometry question...
- Subject: Re: NSBezierPath geometry question...
- From: Robert Clair <email@hidden>
- Date: Mon, 11 Apr 2005 07:01:38 -0400
<x-tad-bigger> 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;
</x-tad-bigger>
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden