The blending functions are given by the Bernstein polynomials:
$$B_{i,n}(u) = \binom{n}{i} u^i (1-u)^{n-i}$$
where $n$ is the degree of the curve (in this case, $n=4$ since there are five control vertices) and $i$ is the index of the control vertex. So, we
Show more…