From 80193cd227d1dc94a927831d5079a02364238c61 Mon Sep 17 00:00:00 2001 From: Dennis Mannhart Date: Mon, 26 Nov 2018 14:48:20 +0100 Subject: [PATCH] math Functions: replace float with T --- src/lib/mathlib/math/Functions.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/mathlib/math/Functions.hpp b/src/lib/mathlib/math/Functions.hpp index 2a8bc5d837..43ce9b9efa 100644 --- a/src/lib/mathlib/math/Functions.hpp +++ b/src/lib/mathlib/math/Functions.hpp @@ -146,8 +146,8 @@ const T gradual(const T &value, const T &x_low, const T &x_high, const T &y_low, } else { /* linear function between the two points */ - float a = (y_high - y_low) / (x_high - x_low); - float b = y_low - a * x_low; + T a = (y_high - y_low) / (x_high - x_low); + T b = y_low - a * x_low; return a * value + b; } }