diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-12-08 11:54:23 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-12-08 11:54:23 +0100 |
| commit | 34a2dd53faf6c829fc25e3e7e96e55c789578f97 (patch) | |
| tree | 11f292b19f1590c282b8a33e37e9eb9b118b7ef7 /data/creator.cpp~ | |
| parent | e3a66514d57ff4acf2f02df7d86bd2cf8be0e730 (diff) | |
| download | RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar.gz RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar.bz2 RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar.xz RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.zip | |
Cleanup
Diffstat (limited to 'data/creator.cpp~')
| -rw-r--r-- | data/creator.cpp~ | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/data/creator.cpp~ b/data/creator.cpp~ deleted file mode 100644 index 9abcdcf..0000000 --- a/data/creator.cpp~ +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #include <iostream> | ||
| 2 | #include <fstream> | ||
| 3 | #include <math.h> | ||
| 4 | |||
| 5 | using namespace std; | ||
| 6 | |||
| 7 | int main() | ||
| 8 | { | ||
| 9 | ofstream o; | ||
| 10 | o.open("nnova1.txt"); | ||
| 11 | o << "Nova 1\n"; | ||
| 12 | o << "data/images/empty.bmp\n"; | ||
| 13 | o << 2 << '\n'; | ||
| 14 | int shots = 300; | ||
| 15 | double T = 10; | ||
| 16 | double duration = 0.6; | ||
| 17 | double start = 3; | ||
| 18 | double speed = 320; | ||
| 19 | int Ncircles = 4; | ||
| 20 | o << shots << endl; | ||
| 21 | for(int i = 0; i < shots; ++i) | ||
| 22 | { | ||
| 23 | o << T << '\n'; | ||
| 24 | o << T - start - ((double) i)/((double) shots)*duration-0.0001 << '\n'; | ||
| 25 | o << "data/psi.txt\n"; | ||
| 26 | o << cos(Ncircles*2*M_PI*i/((double) shots))*speed << '\n'; | ||
| 27 | o << sin(Ncircles*2*M_PI*i/((double) shots))*speed; | ||
| 28 | if(i != shots-1) | ||
| 29 | o << endl; | ||
| 30 | } | ||
| 31 | o.close(); | ||
| 32 | } | ||
