diff --git a/libs/math/include/psemek/math/math.hpp b/libs/math/include/psemek/math/math.hpp index f3e598ea..19e11e24 100644 --- a/libs/math/include/psemek/math/math.hpp +++ b/libs/math/include/psemek/math/math.hpp @@ -216,13 +216,13 @@ namespace psemek::math template T smoothstep(T x) { - return x * x * (3 - 2 * x); + return x * x * (T{3} - T{2} * x); } template T smootherstep(T x) { - return x * x * x * (10 - x * (15 - 6 * x)); + return x * x * x * (T{10} - x * (T{15} - T{6} * x)); } template