• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBezierPath with RoundRect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSBezierPath with RoundRect? (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: A rather simple question about coercion
  • Next by Date: Re: A rather simple question about coercion
  • Previous by thread: NSBezierPath with RoundRect?
  • Next by thread: Re: New Book: Mac OS X Developer's Guide
  • Index(es):
    • Date
    • Thread