Center point on html quadratic curve
问题 I have a quadratic curve drawn on html canvas using context.quadraticCurveTo(controlX, controlY, endX, endY); . I have the control-point and the starting and end points, which are not necessarily level with each other horizontally. How can I find the centre point on the curve using these parameters? Actually I want to put a div tag on this center point. Is there any equation solving involved in this process? 回答1: quadraticCurveTo draws a quadratic Bézier curve. The formulas to calculate the