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