Function cubicBezierEquation