An interpolator where the rate of change starts fast and decelerates. More...
#include <SInterpolatorImpl.h>
Public Member Functions | |
SDecelerateInterpolator (float factor=1.0f) | |
Constructor for SDecelerateInterpolator. | |
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 SDecelerateInterpolator. | |
An interpolator where the rate of change starts fast and decelerates.
Definition at line 66 of file SInterpolatorImpl.h.
SDecelerateInterpolator::SDecelerateInterpolator | ( | float | factor = 1.0f | ) |
Constructor for SDecelerateInterpolator.
factor | Degree to which the animation should be eased. Setting factor to 1.0f produces an upside-down y=x^2 parabola. Increasing factor above 1.0f exaggerates the ease-out effect (i.e., it starts even faster and ends even slower). |
Definition at line 54 of file SInterpolatorImpl.cpp.
float SDecelerateInterpolator::getInterpolation | ( | float | input | ) |
Gets the interpolated value for the given input.
input | The input value between 0 and 1. |
Definition at line 40 of file SInterpolatorImpl.cpp.
|
inlinevirtual |
Attributes for SDecelerateInterpolator.
< Degree to which the animation should be eased.
Definition at line 90 of file SInterpolatorImpl.h.