/* Evaluates the Bernstein polynomial that represents the curve, at 't'. 't' should be a value between 0.0 and 1.0 (though it can be any float, but the relevant values are between 0 and 1). 'x' and 'y' will contain the coordinates of the evaluated point.  */
static void quad_bezier_eval(const quad_bezier_t *q, vg_lite_float_t t, vg_lite_float_t *x, vg_lite_float_t *y)
/* Evaluates the Bernstein polynomial that represents the curve, at 't'. 't' should be a value between 0.0 and 1.0 (though it can be any float, but the relevant values are between 0 and 1). 'x' and 'y' will contain the coordinates of the evaluated point.  */
static void quad_bezier_eval(const quad_bezier_t *q, vg_lite_float_t t, vg_lite_float_t *x, vg_lite_float_t *y)
{
    const vg_lite_float_t omt = 1.0 - t;
    *x = q->X0 * omt * omt + 2.0 * q->X1 * t * omt + q->X2 * t * t;
    *y = q->Y0 * omt * omt + 2.0 * q->Y1 * t * omt + q->Y2 * t * t;
}