A tool for my bezier curve fitter (use the mouse and click around) This project finds the closest point on a quadratic bezier curve to a given point in space. It doesn't use anything clever it literally just iterates N number of times and then picks the T value that was closest. Could and should be optimized (using bezier derivative and normal vector such that the direction vector of p - B(t) = direction vector perpendicular to B'(t)) I did the calculations for this and it's a pretty difficult problem but anyone is welcome to try at the link inside
I'm making a bezier curve fitter and this tool is used to measure the accuracy of a given curve to a list of points (by calculating the distance of the points to the curve cumulatively) Might expand to other orders of bezier curves, but probably not unless I find a more elegant method