are the Bernstein basis functions of degree p, bi = ( x1, …, xn) are the control vertices of the n-dimensional space, and wi are the weights, which should always be positive real numbers to get a properly defined rational Bézier curve. A rational Bézier curve has a direction defined by the parameter t.