Sleeping Wombat Common Library
0.50.0
swCommonLibrary
|
Linear interpolator. More...
#include <LinearInterpolator.h>
Public Member Functions | |
LinearInterpolator ()=default | |
Constructor for serialization. | |
LinearInterpolator (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator) | |
Constructor for default interpolator creation function. | |
virtual KeyType | Interpolate (TimeType time, Key< KeyType > &left, Key< KeyType > &right) override |
Main function invoked by evaluator. | |
virtual void | Update (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator) override |
Function updates interpolator, when left or right key value changes. More... | |
virtual KeyType | LeftTangent (const Key< KeyType > &left, const Key< KeyType > &right) const override |
Returns curve tangent. Function can be used by surrounding interpolators to smooth curve. | |
virtual KeyType | RightTangent (const Key< KeyType > &left, const Key< KeyType > &right) const override |
Returns curve tangent. Function can be used by surrounding interpolators to smooth curve. | |
Protected Member Functions | |
KeyType | Tangent (const Key< KeyType > &left, const Key< KeyType > &right) const |
Linear interpolator.
|
inlineoverridevirtual |
Function updates interpolator, when left or right key value changes.
Implements IInterpolator< KeyType >.