Calculate the position of a Bezier curve using the same calculation method regardless of vertex count.
Calculate the position of a Bezier curve using specialised calculations for linear, quadratic and cubic curves.