2#include <glm/common.hpp>
7template <
typename Type>
11template <
typename Type>
12constexpr auto interpolate(Type
const& a, Type
const& b,
float const t) {
17template <
typename Type>
19 constexpr auto operator()(Type
const& a, Type
const& b,
float const t)
const {
return std::lerp(a, b, t); }
23template <
typename Type, glm::length_t Length>
25 constexpr auto operator()(glm::vec<Length, Type>
const a, glm::vec<Length, Type>
const b,
float const t)
const {
return glm::mix(a, b, t); }
auto to_radians() const -> float
Definition animation.hpp:9
constexpr auto interpolate(Type const &a, Type const &b, float const t)
Wrapper for Interpolator<Type>{}(a, b, t).
Definition interpolator.hpp:12
constexpr auto operator()(glm::vec< Length, Type > const a, glm::vec< Length, Type > const b, float const t) const
Definition interpolator.hpp:25
Base class template for linear interpolation.
Definition interpolator.hpp:18
constexpr auto operator()(Type const &a, Type const &b, float const t) const
Definition interpolator.hpp:19