Re: Does cocoa just leak?
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