Home > Degrafa, Flex > Degrafa Cubic Bezier Y at X

Degrafa Cubic Bezier Y at X

January 19, 2009

A demo of the Degrafa AdvancedCubicBezier y at x method is now available.  This method returns up to three t-parameters of the cubic curve’s y-coordinate at the input x-coordinate.  This allows the caller to choose among multiple y-values with the same x-coordinate.

Degrafa Cubic Bezier y at x

Degrafa Cubic Bezier y at x

View demo.

View source.

  1. Macaca
    January 19, 2009 at 2:00 pm

    I was playing around with it, very nice.

    I did discover some situations where no points are found on certain segments even though the red line visibly crossed the curve. Mostly this involved making a loop and putting one end coordinate weird below one end of the curve and selecting just the loop.. impossible to explain, so i did a pic here: http://www.constructoid.com/stuff/comments/algorithmistCurve.jpg

    I noticed it had something to do with the t: parameter approaching 1 (it didn’t work when crossing the boundary of D’s point in the pic).

    Monkey tested :p

  2. January 19, 2009 at 2:39 pm

    Thanks – I’ll look into it.

    – jim

  3. January 19, 2009 at 7:11 pm

    Should be fixed now; a small typo in the inline bisection resulting from the port from Singularity to Degrafa. Thanks again!!

    – jim

  4. Macaca
    January 23, 2009 at 3:13 am

    Cool, i contributed something.. glad to be of assistance :p

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: