lemon/bits/bezier.h
changeset 193 65cba1032f90
parent 157 2ccc1afc2c52
child 209 765619b7cbb2
equal deleted inserted replaced
1:04d6058b1d08 2:cf01821a92c0
    30 namespace lemon {
    30 namespace lemon {
    31   namespace dim2 {
    31   namespace dim2 {
    32 
    32 
    33 class BezierBase {
    33 class BezierBase {
    34 public:
    34 public:
    35   typedef Point<double> Point;
    35   typedef lemon::dim2::Point<double> Point;
    36 protected:
    36 protected:
    37   static Point conv(Point x,Point y,double t) {return (1-t)*x+t*y;}
    37   static Point conv(Point x,Point y,double t) {return (1-t)*x+t*y;}
    38 };
    38 };
    39 
    39 
    40 class Bezier1 : public BezierBase
    40 class Bezier1 : public BezierBase