lilypond-1.3.69
[lilypond.git] / lily / spring.cc
blob41a7e1772ddce17c1612325a003ab6cd5ec42624
1 /*
2 spring.cc -- implement Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "spring.hh"
11 #include "debug.hh"
12 #include "item.hh"
13 #include "paper-column.hh"
15 Spring::Spring ()
17 item_l_drul_[LEFT] =item_l_drul_[RIGHT] =0;
18 distance_f_ =0.;
19 strength_f_ =1.0;
22 void
23 Spring::add_to_cols ()
25 item_l_drul_[LEFT]->column_l ()->add_spring (item_l_drul_[RIGHT]->column_l (), distance_f_, strength_f_);
29 Column_spring::Column_spring ()
31 other_l_ = 0;
32 distance_f_ =0;
33 strength_f_ =1.0;