All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiWidgets::StepInterpolation< T > Class Template Reference

Constant step interpolation of keyframes (ignores tangents) More...

#include <MultiWidgets/Interpolation.hpp>

Static Public Member Functions

static T interpolate (float time, const KeyFrame< T > &a, const KeyFrame< T > &b)
 Interpolates between two keyframes using the specified time. More...
 

Detailed Description

template<class T>
class MultiWidgets::StepInterpolation< T >

Constant step interpolation of keyframes (ignores tangents)

Member Function Documentation

template<class T >
static T MultiWidgets::StepInterpolation< T >::interpolate ( float  time,
const KeyFrame< T > &  a,
const KeyFrame< T > &  b 
)
inlinestatic

Interpolates between two keyframes using the specified time.

Parameters
timeinterpolating parameter
afirst keyframe
bsecond keyframe
Returns
interpolated value