<span style="font-size:18px;">#
#曲线类
class Curve():
def __init__(self, startPoint = [0, 0], startAngle = 0, span = 100, curveRate = 0):
#起点
self.startPoint = startPoint;
#起点的斜率
self.startAngle = startAngle;
#跨度
self.span = span;
#曲率,1/曲率半径, 直线为0
self.curveRate = curveRate;
#路径
self.path = [];
def setStartPoint(self, point):
self.startPoint = point;
#曲线长度,或跨度
def setSpan(self, span):
self.span = span;
#设置曲率
#曲率的定义