def bernstein_polynomials(i, n, t): return comb(n, i) * (t ** (n - i)) * ((1 - t) ** i) # Get points for bezier curve