An interpolator where the change starts backward before moving forward. More...
#include <SInterpolatorImpl.h>
Public Member Functions | |
SAnticipateInterpolator () | |
Default constructor for SAnticipateInterpolator. | |
SAnticipateInterpolator (float tension) | |
Constructor for SAnticipateInterpolator. | |
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 SAnticipateInterpolator. | |
An interpolator where the change starts backward before moving forward.
Definition at line 115 of file SInterpolatorImpl.h.
SAnticipateInterpolator::SAnticipateInterpolator | ( | ) |
Default constructor for SAnticipateInterpolator.
Definition at line 77 of file SInterpolatorImpl.cpp.
SAnticipateInterpolator::SAnticipateInterpolator | ( | float | tension | ) |
Constructor for SAnticipateInterpolator.
tension | Amount of anticipation. When tension equals 0.0f, there is no anticipation and the interpolator becomes a simple acceleration interpolator. |
Definition at line 72 of file SInterpolatorImpl.cpp.
float SAnticipateInterpolator::getInterpolation | ( | float | input | ) |
Gets the interpolated value for the given input.
input | The input value between 0 and 1. |
Definition at line 66 of file SInterpolatorImpl.cpp.
|
inlinevirtual |
Attributes for SAnticipateInterpolator.
< Amount of anticipation.
Definition at line 143 of file SInterpolatorImpl.h.