just a test

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Revision:
0:345b3bc7a0ea
Child:
30:d8af03f01cd4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/classSpring.h	Wed Mar 28 14:40:01 2012 +0000
@@ -0,0 +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