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