Alvaro Cassinelli
/
skinGames_II
save loops
classSpring.h
- Committer:
- mbedalvaro
- Date:
- 2014-12-02
- Revision:
- 0:df6fdd9b99f0
File content as of revision 0:df6fdd9b99f0:
#ifndef SPRING_H #define SPRING_H // Springs between particles of the active contour: #include "classPointMass.h" class spring { public: spring(); pointMass * massA; pointMass * massB; float distance; float springiness; // this is the k, springiness constant void update(); // add forces to both point masses void assymetricUpdate(); // only second mass suffers a force }; #endif