Used the summation of Bernstein polynomials multiplied by the points. Formula here: https://en.wikipedia.org/wiki/B%C3%A9zier_curve#Explicit_definition