diff options
Diffstat (limited to 'common/accel-linear.hpp')
| -rw-r--r-- | common/accel-linear.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/common/accel-linear.hpp b/common/accel-linear.hpp new file mode 100644 index 0000000..28150a8 --- /dev/null +++ b/common/accel-linear.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "accel-base.hpp" + +namespace rawaccel { + + /// <summary> Struct to hold linear acceleration implementation. </summary> + struct accel_linear : accel_base { + + accel_linear(accel_args args) : accel_base(args) {} + + inline double accelerate(double speed) const { + //f(x) = mx + return speed_coeff * speed; + } + }; + +} |