]> git.donarmstrong.com Git - lilypond.git/blob - lily/idealspacing.cc
805cb3bebb34f9a163b51aefee0886a2552e146d
[lilypond.git] / lily / idealspacing.cc
1 #include "idealspacing.hh"
2 #include "p-col.hh"
3 #include "p-score.hh"
4 #include "p-staff.hh"
5 #include "debug.hh"
6
7 void
8 Idealspacing::print() const
9 {
10 #ifndef NPRINT
11     mtor << "idealspacing {" ;
12     mtor << "distance "<<space<< " strength " << hooke ;
13     mtor << "left " << left->rank() << " right " << right->rank() << "}\n";
14 #endif
15 }
16
17 Idealspacing::Idealspacing(const PCol * l,const PCol * r)
18 {
19     space = 0.0;
20     hooke = 0.0;
21     left = l;
22     right = r;
23 }
24
25 void
26 Idealspacing::OK() const
27 {
28 #ifndef NDEBUG
29     assert(hooke >= 0 && left  && right);
30 #endif    
31 }