2 idealspacing.cc -- implement Idealspacing
4 source file of the GNU LilyPond music typesetter
6 (c) 1996,1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "idealspacing.hh"
15 Idealspacing::print() const
18 DOUT << "idealspacing {" ;
19 DOUT << "distance "<<space_f_<< " strength " << hooke_f_ ;
20 DOUT << "left " << left_i_ << " right " << right_i_ << "}\n";
24 Idealspacing::Idealspacing()
33 Idealspacing::OK() const
35 assert (hooke_f_ >= 0);
39 Idealspacing::energy_f(Real x) const
41 Real dx = (space_f_ - x);