le2d v0.4.3
2D game engine framework
 
Loading...
Searching...
No Matches
interpolator.hpp File Reference
#include <glm/common.hpp>
#include <le2d/transform.hpp>
#include <cmath>

Go to the source code of this file.

Classes

struct  le::anim::Interpolator< Type >
 Base class template for linear interpolation. More...
 
struct  le::anim::Interpolator< glm::vec< Length, Type > >
 Interpolator specialization for glm::vec types. More...
 
struct  le::anim::Interpolator< Transform >
 Interpolator specialization for Transform. More...
 

Namespaces

namespace  le
 
namespace  le::anim
 

Functions

template<typename Type >
constexpr auto le::anim::interpolate (Type const &a, Type const &b, float const t)
 Wrapper for Interpolator<Type>{}(a, b, t).