Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
classSpring.h
- Committer:
- mbedalvaro
- Date:
- 2014-12-02
- Revision:
- 48:7633d8e7b0d3
- Parent:
- 30:d8af03f01cd4
File content as of revision 48:7633d8e7b0d3:
#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