Free camera movement. Somewhat.

I don't know, goniometry is hard.
This commit is contained in:
2017-10-25 17:00:23 +02:00
parent f2c3708485
commit 1fb136cd22
2 changed files with 45 additions and 23 deletions

View File

@@ -2,6 +2,7 @@
#include <algorithm>
#include <cassert>
#include <cmath>
#include <fstream>
#include <iterator>
#include <string>
@@ -121,4 +122,9 @@ namespace fmri
}
}
template<class T>
constexpr inline T deg2rad(T val) {
return val / 180 * M_PI;
}
}