math Functions: replace float with T

This commit is contained in:
Dennis Mannhart
2018-11-30 09:30:00 -05:00
committed by Daniel Agar
parent be2e80c186
commit 80193cd227
+2 -2
View File
@@ -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;
}
}