Added function for calculating Bezier edge control points