You can do this with CurveShape using a quadratic Bezier curve (ie, order=1). With your data, there is one free variable---the t value where (x(t),y(t))=(x2,y2), and a reasonable choice there, to steer away from unstable behavior when two of the points are close to one another, is to set t=distance from point 1 to point 2/(distance from point 1 to point 2+distance from point 2 to point 3). You just have to solve then for the control point, which is straightforward. You have to remember that CurveShape's coordinates for the control point are relative to the basepoint (x,y), unlike the endpoint coordinates.


On Sep 23, 2006, at 3:09 PM, lveillette wrote:


Let's say I have 3 points, x1,y1(0,0)  x2,y2(10,10)  and x3y3
(20,0)  and I
want to draw a curve going from x1,y1 to x3,y3 and pssing thru x2,2...

I tried using the curveShape and x2,y2 as a control point but my
line passes
somewhere bewteen y1 and y2

Does someone know how to achive what I would like to do?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to