An interpolator where the change starts backward before moving forward and overshoots the target. More...
#include <SInterpolatorImpl.h>
Public Member Functions | |
SAnticipateOvershootInterpolator (float tension=2.0f, float extraTension=1.5f) | |
Constructor for SAnticipateOvershootInterpolator. | |
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 SAnticipateOvershootInterpolator. | |
An interpolator where the change starts backward before moving forward and overshoots the target.
Definition at line 152 of file SInterpolatorImpl.h.
SAnticipateOvershootInterpolator::SAnticipateOvershootInterpolator | ( | float | tension = 2.0f, |
float | extraTension = 1.5f ) |
Constructor for SAnticipateOvershootInterpolator.
tension | Amount of anticipation/overshoot. When tension equals 0.0f, there is no anticipation/overshoot and the interpolator becomes a simple acceleration/deceleration interpolator. |
extraTension | Extra amount by which to multiply the tension. For instance, to get the same overshoot as an OvershootInterpolator with a tension of 2.0f, you would use an extraTension of 1.5f. |
Definition at line 105 of file SInterpolatorImpl.cpp.
float SAnticipateOvershootInterpolator::getInterpolation | ( | float | input | ) |
Gets the interpolated value for the given input.
input | The input value between 0 and 1. |
Definition at line 83 of file SInterpolatorImpl.cpp.
|
inlinevirtual |
Attributes for SAnticipateOvershootInterpolator.
< Amount of anticipation/overshoot. Extra amount by which to multiply the tension.
Definition at line 202 of file SInterpolatorImpl.h.