25#ifndef TWEENY_DETAIL_EASING_LINEAR_H
26#define TWEENY_DETAIL_EASING_LINEAR_H
31namespace tweeny::detail {
34 static std::enable_if_t<std::is_integral_v<T>, T> run(
const float position, T start, T end) {
35 return static_cast<T
>(roundf((end - start) * position + start));
39 static std::enable_if_t<!std::is_integral_v<T>, T> run(
const float position, T start, T end) {
40 return static_cast<T
>((end - start) * position + start);
44 T operator()(
const float position, T start, T end)
const {
45 return run<T>(position, start, end);