lemon/bezier.h
changeset 1543 a88ccf686a61
parent 1435 8e85e6bbefdf
child 1548 b96c5b7a0e92
equal deleted inserted replaced
0:e2831dd0e8b5 1:beb28fbe71ca
    59     return Bezier1(conv(p1,p2,t),p2);
    59     return Bezier1(conv(p1,p2,t),p2);
    60   }
    60   }
    61   Bezier1 revert() { return Bezier1(p2,p1);}
    61   Bezier1 revert() { return Bezier1(p2,p1);}
    62   Bezier1 operator()(double a,double b) { return before(b).after(a/b); }
    62   Bezier1 operator()(double a,double b) { return before(b).after(a/b); }
    63   xy grad() { return p2-p1; }
    63   xy grad() { return p2-p1; }
    64   xy grad(double t) { return grad(); }
    64   xy grad(double) { return grad(); }
    65 
    65 
    66 };
    66 };
    67 
    67 
    68 class Bezier2 : public BezierBase
    68 class Bezier2 : public BezierBase
    69 {
    69 {