Skip to main content

Posts

Showing posts with the label bezier-curve

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?