Closest Point on a Cubic Bezier Update
I’m porting the classic Graphic Gem for computing the closest point on a Bezier curve to an arbitrary point from C to AS3. The Gem code only works for cubic Beziers, so that is the starting point for testing. My goal is to provide a utility that works for quadratic or cubic curves. Composite Bezier curves or splines are generally used to fit a larger set of points, with each segment composed of a cubic Bezier.
The first pass of the port is complete, although more testing is required before extending the code to work with quadratics.
When the BezierUtils class is complete, I’ll post two new online demos and an update of the Singularity code base. This will be used as a starting point for discussion of issues involving cusps and alternate optima.