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