lemon/bits/bezier.h
changeset 2618 6aa6fcaeaea5
parent 2553 bfced05fa852
equal deleted inserted replaced
3:9f565edbffe4 4:0d6dae1aac91
    32 namespace lemon {
    32 namespace lemon {
    33   namespace dim2 {
    33   namespace dim2 {
    34 
    34 
    35 class BezierBase {
    35 class BezierBase {
    36 public:
    36 public:
    37   typedef Point<double> Point;
    37   typedef lemon::dim2::Point<double> Point;
    38 protected:
    38 protected:
    39   static Point conv(Point x,Point y,double t) {return (1-t)*x+t*y;}
    39   static Point conv(Point x,Point y,double t) {return (1-t)*x+t*y;}
    40 };
    40 };
    41 
    41 
    42 class Bezier1 : public BezierBase
    42 class Bezier1 : public BezierBase