I would like to »straighten« a cubic bezier path, such that its arc length is preserved.
The coordinates of A
, B
and their control Points (C
and D
) are given, as well as their destinations (A'
and B'
). So while animating A
to A'
and B
to B'
I need to calculate values for C
and D
as well, to make the line appear equally long.
As described here for the arc length:
for cubic and higher Bézier curves, there is no way to solve this function if you want to use it "for all possible coordinates".
Has anybody come over that before?