diff --git a/libs/geom/include/psemek/geom/math.hpp b/libs/geom/include/psemek/geom/math.hpp index 1ef70b72..0c2d4b8c 100644 --- a/libs/geom/include/psemek/geom/math.hpp +++ b/libs/geom/include/psemek/geom/math.hpp @@ -37,8 +37,8 @@ namespace psemek::geom return static_cast((x * pi) / 180); } - template - T lerp(T const & x0, T const & x1, T const & t) + template + X lerp(X const & x0, X const & x1, T const & t) { return x0 * (T(1) - t) + x1 * t; }