Someone somewhere has had to solve this problem. I can find many a great website explaining this problem and how to solve it. While I'm sure they are well written and make sense to math whizzes, that isn't me. And while I might understand in a vague sort of way, I do not understand how to turn that math into a function that I can use.
So I beg of you, if you have a function that can do this, in any language, (sure even fortran or heck 6502 assembler) - please help me out.
- prefer an analytical to iterative solution
EDIT: Meant to specify that its a cubic bezier I'm trying to work with.
![B(t) = (1-t)^3 * p[0] + 3(1-t)^2 * p[1] + 3(1-t)^2 * p[2] + t^3 * p[3], t in [0, 1]](https://upload.wikimedia.org/math/5/e/3/5e32b674a98a9f70e492851f9ad92b61.png)