calculate the distance from a point to the quadratic bezier curve, the closest point on the bezier curve.