2 bezier.hh -- declare Bezier and Bezier_bow
4 (c) 1998--2002 Jan Nieuwenhuizen <janneke@gnu.org>
12 #include "drul-array.hh"
13 #include "interval.hh"
17 #include "polynomial.hh"
25 void assert_sanity () const;
26 void scale (Real x,Real y);
29 void translate (Offset);
31 Real get_other_coordinate (Axis a, Real x) const;
32 Array<Real> solve_point (Axis, Real coordinate) const;
33 Array<Real> solve_derivative (Offset) const;
34 Interval extent (Axis)const;
35 Polynomial polynomial (Axis)const;
36 Offset curve_point (Real t) const;
38 static const int CONTROL_COUNT = 4;
41 Bezier curves always have 4 control points. Making this into an
42 Array<> gives unnecessary overhead, and makes debugging a royal
49 void scale (Array<Offset>* array, Real xscale, Real yscale);
50 void rotate (Array<Offset>* array, Real phi);
51 void translate (Array<Offset>* array, Offset o);