2 bezier.hh -- declare Bezier and Bezier_bow
4 (c) 1998--2004 Jan Nieuwenhuizen <janneke@gnu.org>
12 #include "drul-array.hh"
13 #include "interval.hh"
16 #include "polynomial.hh"
24 void assert_sanity () const;
25 void scale (Real x,Real y);
28 void translate (Offset);
30 Real get_other_coordinate (Axis a, Real x) const;
31 Array<Real> solve_point (Axis, Real coordinate) const;
32 Array<Real> solve_derivative (Offset) const;
33 Interval extent (Axis)const;
34 Polynomial polynomial (Axis)const;
35 Offset curve_point (Real t) const;
37 static const int CONTROL_COUNT = 4;
40 Bezier curves always have 4 control points. Making this into an
41 Array<> gives unnecessary overhead, and makes debugging a royal
48 void scale (Array<Offset>* array, Real xscale, Real yscale);
49 void rotate (Array<Offset>* array, Real phi);
50 void translate (Array<Offset>* array, Offset o);
54 Bezier slur_shape (Real width, Real height_limit,
55 Real height_proportion);
56 Real slur_height (Real width, Real height_limit, Real height_proportion);
57 void get_slur_indent_height (Real * indent, Real *height, Real width, Real h_inf, Real r_0);