summaryrefslogtreecommitdiff
path: root/common/accel-linear.hpp
blob: 28150a8b8950d8a0f13d18359003f15eb61aba3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
		}
	};

}