Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
Diff: classSpring.h
- Revision:
- 30:d8af03f01cd4
- Parent:
- 0:345b3bc7a0ea
--- a/classSpring.h Wed Jun 20 03:25:49 2012 +0000 +++ b/classSpring.h Fri Sep 21 10:02:35 2012 +0000 @@ -1,27 +1,27 @@ -#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 +#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