2 bezier.hh -- declare Bezier and Bezier_bow
4 (c) 1998--2000 Jan Nieuwenhuizen <janneke@gnu.org>
12 #include "drul-array.hh"
13 #include "interval.hh"
17 #include "polynomial.hh"
27 void assert_sanity () const;
31 void translate (Offset);
33 Real get_other_coordinate (Axis a, Real x) const;
34 Array<Real> solve_point (Axis, Real coordinate) const;
35 Array<Real> solve_derivative (Offset) const;
36 Interval extent (Axis)const;
37 Polynomial polynomial (Axis)const;
38 Offset curve_point (Real t) const;
40 static const int CONTROL_COUNT = 4;
41 Array<Offset> control_;
44 void flip (Array<Offset>* arr_p, Axis a);
45 void rotate (Array<Offset>* arr_p, Real phi);
46 void translate (Array<Offset>* arr_p, Offset o);