Search code examples
language-agnosticbeziercurvepolynomial-mathquadratic

Convert a quadratic curve points to polynomial representation?


I have the X,Y of 2 end points and 1 bezier point, of a Quadratic Bezier curve.

Using this data, how can I derive the polynomial representation of the curve?

alt text
(source: euclidraw.com)


Solution

  • B(t) = (1-t) * (1-t) * B0 + 2 * (1-t) * t * B1 + t * t * B2