Function evaluateBezier