summaryrefslogtreecommitdiff
path: root/common/accel-jump.hpp
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-04-07 23:38:47 -0700
committerJacob Palecki <[email protected]>2021-04-07 23:38:47 -0700
commite1b5ff67764384ab067cee7983cbaaf9b5df39ad (patch)
tree39ffa4a79bc6b019443521f10203f787c4b98698 /common/accel-jump.hpp
parentremove const from uneeded class (diff)
parentoptimize a bit/refactor modify (diff)
downloadrawaccel-e1b5ff67764384ab067cee7983cbaaf9b5df39ad.tar.xz
rawaccel-e1b5ff67764384ab067cee7983cbaaf9b5df39ad.zip
Merge remote-tracking branch 'upstream/dyn-lut-b' into lut2
Diffstat (limited to 'common/accel-jump.hpp')
-rw-r--r--common/accel-jump.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/accel-jump.hpp b/common/accel-jump.hpp
index 2d13cae..30f9a49 100644
--- a/common/accel-jump.hpp
+++ b/common/accel-jump.hpp
@@ -2,9 +2,6 @@
#include "rawaccel-base.hpp"
-#define _USE_MATH_DEFINES
-#include <math.h>
-
namespace rawaccel {
struct jump_base {
@@ -18,7 +15,7 @@ namespace rawaccel {
smooth_rate = 0;
}
else {
- smooth_rate = 2 * M_PI / (args.offset * args.smooth);
+ smooth_rate = 2 * PI / (args.offset * args.smooth);
}
}