#pragma once #include #include "accel-base.hpp" namespace rawaccel { /// Struct to hold logarithmic acceleration implementation. struct accel_logarithmic : accel_base { using accel_base::accel_base; inline double accelerate(double speed) const { //f(x) = log(m*x+1) return log(speed_coeff * speed + 1); } }; }