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?

From stackoverflow
-
Oog. That would be tricky. Beziers are parametrized curves, namely:
x = f(t) y = g(t)where t=0 yields one endpoint and t=1 yields the other.
You could technically figure out how to eliminate "t" and get an equation in x and y, but it would not be a polynomial like y = a + bx + cx2 ...; it would be an equation h(x,y) = 0 where h is probably somewhat ugly.
-
Wikipedia has a section about this. Perhaps this helps.
-
B(t) = (1-t) * (1-t) * B0 + 2 * (1-t) * t * B1 + t * t * B2
Jason S : Oh. If that's what the OP was looking for, then you're exactly correct. (at least Wikipedia corroborates it ;) I thought he was trying to get a polynomial equation without the parameter t in it.joel.neely : Original Poster.
0 comments:
Post a Comment