I’m searching for an algorithm that returns a point on a quartic bezier (2D), given:
A. Parameter t of [0,1]
B. The 5 points that make a quartic bezier curve:
- P0 – Start point
- P1, P2, P3 – Control points 1, 2 and 3
- P4 – End point
Searching the net I couldn’t find any algorithm, just nice visual applets, e.g.:
wikipedia
I will implement using javaScript, if it somehow matters.
Appreciate your help!
In the very Wikipedia article you found there is a chapter Generalization of Bézier curves for any degree n. In the explicit definition section there is even an example for
n=5: