Recursive function of Bezier Curve python
问题 I am asked to design a recursive function called Bezier which parametres are a list of points given, and the point that must be evaluated t. It returns the point in the Bezier curve defined by the control points of the list of points. This is the algorithm that I have done: def Bezier(point_list, t): if len(point_list)==1: return point_list[0] else: P1=Bezier(point_list[0:-1],t) P2=Bezier(point_list[1:],t) P=(1-t)*P1 + t*P2 return P and this is the list of points given: point_list=[ (0,0),