Mercurial > hg > wabletios
diff spring.mm @ 3:d346ddc50f70
Vectorised a few things. Fiddled with new mesh creator... not solved much.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 07 Dec 2012 19:20:57 +0000 |
parents | c667dfe12d47 |
children | 0e03760cf2d9 |
line wrap: on
line diff
--- a/spring.mm Thu Nov 22 17:58:34 2012 +0000 +++ b/spring.mm Fri Dec 07 19:20:57 2012 +0000 @@ -24,13 +24,11 @@ //--------------------------------------------------------------- Spring::Spring(){ //cout << "constructing a default spring" << endl; + + isInScanPath = false; - startPoint.setCoord(0.0,0.0); // dummy values - shouldn't get used - endPoint.setCoord(0.0,0.0); - - springConst = 0.3; // not needed - assume it's one and use 1/c^2 for mass - - isInScanPath = false; + springConst = 0.3; + startLumpPtr = 0; endLumpPtr = 0;