• 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 geometry question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: creating a target dependency in an Xcode project
  • Next by Date: Re: NSBezierPath geometry question...
  • Previous by thread: Re: NSBezierPath geometry question...
  • Next by thread: Re: NSBezierPath geometry question...
  • Index(es):
    • Date
    • Thread