save loops

Dependencies:   mbed

classSpring.h

Committer:
mbedalvaro
Date:
2014-12-02
Revision:
1:3be7b7d050f4
Parent:
0:df6fdd9b99f0

File content as of revision 1:3be7b7d050f4:

#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