An interpolator where the change overshoots the target and then comes back. More...
#include <SInterpolatorImpl.h>
Public Member Functions | |
SOvershootInterpolator (float tension=2.0f) | |
Constructor for SOvershootInterpolator. | |
float | getInterpolation (float input) SCONST OVERRIDE |
Gets the interpolated value for the given input. | |
virtual HRESULT | SetAttribute (const SNS::SStringW &amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;strValue, BOOL bLoading=FALSE) |
Attributes for SOvershootInterpolator. | |
An interpolator where the change overshoots the target and then comes back.
Definition at line 268 of file SInterpolatorImpl.h.
SOvershootInterpolator::SOvershootInterpolator | ( | float | tension = 2.0f | ) |
Constructor for SOvershootInterpolator.
tension | Amount of overshoot. When tension equals 0.0f, there is no overshoot and the interpolator becomes a simple deceleration interpolator. |
Definition at line 157 of file SInterpolatorImpl.cpp.
float SOvershootInterpolator::getInterpolation | ( | float | input | ) |
Gets the interpolated value for the given input.
input | The input value between 0 and 1. |
Definition at line 149 of file SInterpolatorImpl.cpp.
|
inlinevirtual |
Attributes for SOvershootInterpolator.
< Amount of overshoot.
Definition at line 291 of file SInterpolatorImpl.h.