I have a cubic Bézier curve defined by f(t)
where t is in the interval [0..1], and I have approximated the Bézier curve with an n + 1 vertex polyline represented in an array called p, each vertex being p[i] for i in 0..n, where p[i] = f(i / n)
However, the points in the polyline are not actually the same distance from eachother. The distance between p[i] and p[i+1] varies over the length of the curve. I want to make the distances between all of the points in p the same.
How do I do this?