]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/curve.hh
release: 1.0.1
[lilypond.git] / lily / include / curve.hh
1 /*
2   curve.hh -- declare point and curve
3
4   (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
5 */
6
7 #ifndef CURVE_HH
8 #define CURVE_HH
9
10 #ifndef STANDALONE
11 #include "lily-proto.hh"
12 #endif
13
14 #include "real.hh"
15
16 #include "offset.hh"
17 #include "array.hh"
18
19 class Curve : public Array<Offset>
20 {
21 public:
22   void flipy ();
23   int largest_disturbing ();
24   void rotate (Real phi);
25   void translate (Offset o);
26
27   void operator = (Array<Offset> const & src) 
28   {
29     Array<Offset>::operator =(src);     
30   }
31   void operator = (Curve const & src) 
32   {
33     Array<Offset>::operator =((Array<Offset>)src);      
34   }
35 };
36
37 #endif // CURVE_HH
38