(x0, y0, x1, y1, x2, y2, x3, y3, t)
return xt, yt
Evaluates the Bezier curve from point (x0,y0) to (x3,y3) via control points
    (x1,y1) and (x2,y2) with parameter t.
Evaluates the Bezier curve from point (x0,y0) to (x3,y3) via control points
    (x1,y1) and (x2,y2) with parameter t.
Evaluates the Bezier curve from point ( x0 y0 ) to ( x3 y3 ) via control points ( x1 y1 ) and ( x2 y2 ) with parameter t .
def evaluate_cubic_bezier_curve(x0, y0, x1, y1, x2, y2, x3, y3, t):
    """Evaluates the Bezier curve from point (x0,y0) to (x3,y3) via control points
    (x1,y1) and (x2,y2) with parameter t.
    """
    xt = (
        (1.0 - t) ** 3 * x0
        + 3.0 * t * (1.0 - t) ** 2 * x1
        + 3.0 * t ** 2 * (1.0 - t) * x2
        + t ** 3 * x3
    )
    yt = (
        (1.0 - t) ** 3 * y0
        + 3.0 * t * (1.0 - t) ** 2 * y1
        + 3.0 * t ** 2 * (1.0 - t) * y2
        + t ** 3 * y3
    )
    return xt, yt
def evaluate_cubic_bezier_curve ( x0 , y0 , x1 , y1 , x2 , y2 , x3 , y3 , t ) : xt = ( ( 1.0 - t ) ** 3 * x0 + 3.0 * t * ( 1.0 - t ) ** 2 * x1 + 3.0 * t ** 2 * ( 1.0 - t ) * x2 + t ** 3 * x3 ) yt = ( ( 1.0 - t ) ** 3 * y0 + 3.0 * t * ( 1.0 - t ) ** 2 * y1 + 3.0 * t ** 2 * ( 1.0 - t ) * y2 + t ** 3 * y3 ) return xt , yt