]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/bezier.hh
Merge commit 'origin'
[lilypond.git] / lily / include / bezier.hh
index 2dc8ef22d680f215e7631ab5bd89116ccb1e37f2..6adbdd3d0ddea4c194af6bd9d0fea56215336dcc 100644 (file)
@@ -1,7 +1,7 @@
 /*
   bezier.hh -- declare Bezier and Bezier_bow
 
-  (c) 1998--2006 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1998--2009 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #ifndef BEZIER_HH
@@ -22,10 +22,12 @@ public:
   void reverse ();
   void rotate (Real);
   void translate (Offset);
+  void subdivide (Real, Bezier *, Bezier *) const;
+  Bezier extract (Real, Real) const;
 
   Real get_other_coordinate (Axis a, Real x) const;
-  std::vector<Real> solve_point (Axis, Real coordinate) const;
-  std::vector<Real> solve_derivative (Offset) const;
+  vector<Real> solve_point (Axis, Real coordinate) const;
+  vector<Real> solve_derivative (Offset) const;
   Interval extent (Axis) const;
   Interval control_point_extent (Axis) const;
   
@@ -37,15 +39,15 @@ public:
 
   /*
     Bezier curves always have 4 control points. Making this into an
-    std::vector<> gives unnecessary overhead, and makes debugging a royal
+    vector<> gives unnecessary overhead, and makes debugging a royal
     pain.  */
 
   Offset control_[4];
 };
 
-void scale (std::vector<Offset> *array, Real xscale, Real yscale);
-void rotate (std::vector<Offset> *array, Real phi);
-void translate (std::vector<Offset> *array, Offset o);
+void scale (vector<Offset> *array, Real xscale, Real yscale);
+void rotate (vector<Offset> *array, Real phi);
+void translate (vector<Offset> *array, Offset o);
 
 Bezier slur_shape (Real width, Real height_limit,
                   Real height_proportion);