I want to connect two point using a curve, we know the coordinates of start point, the coordinates of end point, curve length. Since the length is greater than the direct straight line of the two points, a curve should be used. Any method using the d3 library would be better. I found something similar to my question here. But the question is not actually solved since calculating the length is far too complex. Thanks.
Here is one way of using circle arc, I analytically try it but it seems not good enough since we need some numerical method such as Newton's method to obtain theta, the function has the form
sin theta / theta = 2l / s
where l is the length of the curve and s is the length of the straight line (segment).