6 if (std::is_same<T, float>::value)
8 else if (std::is_same<T, Vector2>::value)
10 else if (std::is_same<T, Vector3>::value)
58 value = mFactor * val + (1.0f - mFactor) * lastValue;
122 value = (mAlpha * val) + ((1.0f - mAlpha) * (value + slope));
123 slope = (mBeta * (value - lastValue)) + ((1.0f - mBeta) * slope);
142template class DoubleExponentialSmoother < float > ;
143template class DoubleExponentialSmoother < Vector2 >;
144template class DoubleExponentialSmoother < Vector3 >;
146template class LinearSmoother < float >;
147template class LinearSmoother < Vector2 >;
148template class LinearSmoother < Vector3 >;
#define SMOOTHER_TYPE_VEC2
#define SMOOTHER_TYPE_VEC3
#define SMOOTHER_TYPE_FLOAT
#define SMOOTHER_TYPE_UNDEFINED
#define SMOOTHER_METHOD_LINEAR
#define SMOOTHER_METHOD_DOUBLEEXP
virtual T getSmoothedValue()
virtual void clearValues()
DoubleExponentialSmoother(float alpha=0.5f, float beta=0.5f)
virtual void pushValue(T val)
virtual int getSmootherMethod()
void setSmoothingFactor(float alpha, float beta)
virtual T getExtrapolatedValue()
virtual void clearValues()
virtual T getSmoothedValue()
virtual void pushValue(T val)
virtual int getSmootherMethod()
void setSmoothingFactor(float factor)
LinearSmoother(float factor=0.5f)
virtual T getExtrapolatedValue()