lemon/bits/bezier.h
changeset 1061 473c71baff72
parent 440 88ed40ad0d4f
child 1092 dceba191c00d
equal deleted inserted replaced
5:13152e93b9e5 6:c6e68da6e0e2
   157     const Point a=(p1+p2)/2;
   157     const Point a=(p1+p2)/2;
   158     const Point b=(p2+p3)/2;
   158     const Point b=(p2+p3)/2;
   159     const Point c=(p3+p4)/2;
   159     const Point c=(p3+p4)/2;
   160     const Point d=(a+b)/2;
   160     const Point d=(a+b)/2;
   161     const Point e=(b+c)/2;
   161     const Point e=(b+c)/2;
   162     const Point f=(d+e)/2;
   162     // const Point f=(d+e)/2;
   163     R f1=_f(Bezier3(p1,a,d,e),_d);
   163     R f1=_f(Bezier3(p1,a,d,e),_d);
   164     R f2=_f(Bezier3(e,d,c,p4),_d);
   164     R f2=_f(Bezier3(e,d,c,p4),_d);
   165     return _s(f1,f2);
   165     return _s(f1,f2);
   166   }
   166   }
   167 
   167