2 bezier.hh -- declare Bezier and Bezier_bow
4 (c) 1998--1999 Jan Nieuwenhuizen <janneke@gnu.org>
11 #include "lily-proto.hh"
16 #include "drul-array.hh"
17 #include "interval.hh"
28 Calculate bezier curve into Offset (x,y) array.
30 void calc (int steps);
33 void set (Array<Offset> points);
36 Return y that goes with x by interpolation.
45 Implement bow specific bezier curve
47 class Bezier_bow : public Bezier
50 Bezier_bow (Paper_def* paper_l);
53 Calculate bezier curve for bow from bow paratime_signatures.
57 Real calc_f (Real height);
59 bool calc_clipping ();
60 void calc_controls ();
61 void calc_default (Real h);
62 void calc_return (Real begin_alpha, Real end_alpha);
63 void calc_tangent_controls ();
67 void set (Array<Offset> points, int dir);
69 void transform_back ();
77 Drul_array<Interval> curve_extent_drul_;