diff options
| author | Jacob Palecki <[email protected]> | 2020-09-04 01:53:59 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-04 01:53:59 -0700 |
| commit | 6470bff9672c56024c542a74a00429273501879f (patch) | |
| tree | bcb498654c7157d7862dcd816004089bd6dcabe0 /common/accel-logarithmic.hpp | |
| parent | Merge with master (diff) | |
| download | rawaccel-6470bff9672c56024c542a74a00429273501879f.tar.xz rawaccel-6470bff9672c56024c542a74a00429273501879f.zip | |
Remove log and sigmoid styles
Diffstat (limited to 'common/accel-logarithmic.hpp')
| -rw-r--r-- | common/accel-logarithmic.hpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/common/accel-logarithmic.hpp b/common/accel-logarithmic.hpp deleted file mode 100644 index 1ab0e53..0000000 --- a/common/accel-logarithmic.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#include <math.h> - -#include "accel-base.hpp" - -namespace rawaccel { - - /// <summary> Struct to hold logarithmic acceleration implementation. </summary> - struct logarithmic_impl { - double accel; - - logarithmic_impl(const accel_args& args) : accel(args.accel) {} - - inline double operator()(double speed) const { - //f(x) = log(m*x+1) - return log(accel * speed + 1); - } - - // incorrect but this style is slated for removal - inline double legacy_offset(double speed) const { return operator()(speed); } - }; - - using accel_logarithmic = additive_accel<logarithmic_impl>; -} |