There is a closed form solution to the arc length of a quadratic Bézier curve, namely: Assuming the Bézier is of the equation A + Bt + Ct^2 where A,B,C are vectors a = (B dot B), b = 2*(B dot C), and c = 4*(C dot C)
(2 * c * t + b) * sqrt(a + b * t + c * t ^ 2) / (4 * c) + log(2 * sqrt(c) * sqrt(a + b * t + c * t ^ 2) + 2 * c * t + b) * (4 * a * c - b ^ 2) / (8 * c ^ (3 / 2))
It's hairy, but does provide a precise answer as to the arc length of a given quadratic Bézier. I'm currently working with Bézier curves and need a way to create a function that, given a distance on the Bézier curve, returns a precise t value that can be used to place that point properly.
I'm aware that there are ways to approximate the arc parameterization of a Bézier curve, as for cubics and higher there is no closed form solution to the elliptic integral that returns their arc length, but since there is an exact equation that gives the length of a quadratic Bézier, would it be possible to find the inverse and get an equation that given a distance returns a t value? Putting that equation into Wolfram Alpha and asking it to solve for t has given me no luck.