just a test

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

classSpring.h

Committer:
mbedalvaro
Date:
2012-09-21
Revision:
30:d8af03f01cd4
Parent:
0:345b3bc7a0ea

File content as of revision 30:d8af03f01cd4:

#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