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

Cubic Bzier interpolation of keyframes (uses both 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::CubicBezierInterpolation< T >

Cubic Bzier interpolation of keyframes (uses both tangents)

Member Function Documentation

template<class T >
static T MultiWidgets::CubicBezierInterpolation< 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