I would like to find the equation of a curve in the form y = ax2 + bx + c
from the following svg path:
<path id="curve1" d="M100,200 C100,100 400,100 400,200" />
this gives me 4 points that can be seen on the attached image.
- 100,200 (start point in purple)
- 100,100 (control point 1 in red)
- 400,100 (control point 2 in green)
- 400,200 (end point in blue)
wikipedia has a great article explaining bezier curves however I am not sure how to apply the maths shown there to get equation of the curve. http://en.wikipedia.org/wiki/B%C3%A9zier_curve