2 spring.hh -- declare Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 #include "lily-proto.hh"
20 Real inverse_stretch_strength_;
21 Real inverse_compress_strength_;
23 DECLARE_SIMPLE_SMOBS (Spring);
26 Spring (Real distance, Real min_distance);
28 Real distance () const {return distance_;}
29 Real min_distance () const {return min_distance_;}
30 Real inverse_stretch_strength () const {return inverse_stretch_strength_;}
31 Real inverse_compress_strength () const {return inverse_compress_strength_;}
33 void set_distance (Real);
34 void set_min_distance (Real);
35 void set_inverse_stretch_strength (Real);
36 void set_inverse_compress_strength (Real);
38 void operator*= (Real);
41 DECLARE_UNSMOB (Spring, spring);
43 Spring merge_springs (vector<Spring> const &springs);
45 #endif /* SPRING_HH */