当速度与最大速度相同时,不算超速,因此需要在超速区间端点加上 esp 如下:
len[t].r=min(L,c[i].d+(V*V-c[i].v*c[i].v)/(2*c[i].a)-eps);
len[t].l=c[i].d+(V*V-c[i].v*c[i].v)/(2*c[i].a)+eps;