I would like to draw rounded area and points over a photo. I decided to do it with a svg which is simplier to make it resizable and movable.
But, from a list of points I do not have an area which go through all points. I used the Quadratic Bezier CurveTo, but I am not able to find the mathematic formula to give the the "Q parameter" the values to calculate the control point to go from A to C passing by B. For the moment, when the angle is too high, the line "turn" before the point, but i would like to go touch the point.
There is infinite number of curves through point B.
Let define that
B
lies on the curve at parametert=1/2
Quadratic curve with unknown control point
Q
has equationSubstiting point
B
andt=1/2
, we haveThis very simple method should work well when
B
is near symmetrical relative toA
andC