le2d v0.4.3
2D game engine framework
 
Loading...
Searching...
No Matches
le::anim::SamplerLerp< PayloadT, InterpolatorT > Struct Template Reference

Interpolation Animation Sampler. More...

#include <le2d/anim/sampler.hpp>

Public Member Functions

constexpr auto sample (std::span< Keyframe< PayloadT > const > keyframes, kvf::Seconds const time) const -> PayloadT
 

Detailed Description

template<typename PayloadT, typename InterpolatorT = Interpolator<PayloadT>>
struct le::anim::SamplerLerp< PayloadT, InterpolatorT >

Interpolation Animation Sampler.

Member Function Documentation

◆ sample()

template<typename PayloadT , typename InterpolatorT = Interpolator<PayloadT>>
constexpr auto le::anim::SamplerLerp< PayloadT, InterpolatorT >::sample ( std::span< Keyframe< PayloadT > const >  keyframes,
kvf::Seconds const  time 
) const -> PayloadT
inlineconstexpr

The documentation for this struct was generated from the following file: