]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/idealspacing.hh
release: 1.0.1
[lilypond.git] / lily / include / idealspacing.hh
1 /*
2   idealspacing.hh -- part of GNU LilyPond
3
4   (c) 1996--1998 Han-Wen Nienhuys
5 */
6
7 #ifndef IDEALSPACING_HH
8 #define IDEALSPACING_HH
9 #include "lily-proto.hh"
10
11 /// ideal spacing between two columns
12 struct Idealspacing {
13
14   /// the ideal distance
15   Real space_f_;
16
17   /// Hooke's constant: how strong are the "springs" attached to columns
18   Real hooke_f_;
19
20   /// the two columns
21   int left_i_;
22   int right_i_;
23     
24   Real energy_f (Real x) const;
25   void print() const;
26   void OK() const ;
27   Idealspacing();
28 };
29
30
31 #endif // IDEALSPACING_HH
32