• 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: Does cocoa just leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does cocoa just leak?


  • Subject: Re: Does cocoa just leak?
  • From: j o a r <email@hidden>
  • Date: Sun, 30 Sep 2001 22:50:06 +0200

On Sunday, September 30, 2001, at 10:34 , John C. Randolph wrote:

is there an alternative way to obtain the x position on a path given a known y-position?
No. Remember that a Bezier path isn't limited to a single point at any given position on the y axis.

My paths aren't that complicated - basically it's a single rectangle, but with two of the parallel edges being curved.

What if I simplified it even more and only use one curved path segment - something like this:

[myPath moveToPoint:pointOne];
[myPath curveToPoint: pointTwo
controlPoint1:pointThree)
controlPoint2: pointFour];

If I know that the path is growing in Y for every point along the path from pointOne to pointTwo, is there a simple algorithm for finding out the value of Y is for any given X?
Could any one point me in the direction for the documentation / reference on the mathematics behind bezier paths?

I'm sorry for the OT question.

Regards,

j o a r


  • Follow-Ups:
    • Re: Does cocoa just leak?
      • From: Rob Rix <email@hidden>
References: 
 >Re: Does cocoa just leak? (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: __MyCompanyName__
  • Next by Date: Re: __MyCompanyName__
  • Previous by thread: Re: Does cocoa just leak?
  • Next by thread: Re: Does cocoa just leak?
  • Index(es):
    • Date
    • Thread