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.

## 4 thoughts on “Degrafa Cubic Bezier Y at X”

Comments are closed.

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

Thanks – I’ll look into it.

– jim

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

– jim

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