Re: NSBezierPath with RoundRect?
Re: NSBezierPath with RoundRect?
- Subject: Re: NSBezierPath with RoundRect?
- From: Scott Thompson <email@hidden>
- Date: Fri, 26 Oct 2001 11:06:38 -0500
Out of curiosity, how are you handling it in the case where the radii
are both the same?
You can approximate an elliptical arc by using a cubic curve whose
handles are a distance of :
radius * .55228474983079
units away from the endpoints of the curve.
I'd draw a picture, but I stink at ASCII art. Does the equation make
sense?
Scott
On Friday, October 26, 2001, at 07:26 AM, Gregory Weston wrote:
Traditional QD has a set of routines that draw RoundRects - rectangles
with the
corners rounded over with specified radii in both dimensions. Anyone
know how to
construct an NSBezierPath like that? I can do it in the special case
where the
radii are both the same but I can't figure out how to handle the
general case.
Any pointers?
Thanks.
Greg
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev