Gin
|
Linearly smooths a value in a 0 to 1 range at a constant rate. More...
Public Member Functions | |
void | setSampleRate (double sr) |
void | setTime (double t) |
bool | isSmoothing () |
void | reset () |
T | getCurrentValue () |
T * | getValuePtr () |
void | snapToValue () |
void | process (int n) |
void | setValue (T v) |
void | updateValue () |
T | getNextValue () |
void | setValueUnsmoothed (T v) |
Linearly smooths a value in a 0 to 1 range at a constant rate.
Time is for from duration from min to max.
void EasedValueSmoother< T >::setSampleRate | ( | double | sr | ) |
References EasedValueSmoother< T >::reset().
void EasedValueSmoother< T >::setTime | ( | double | t | ) |
References EasedValueSmoother< T >::reset().
bool EasedValueSmoother< T >::isSmoothing | ( | ) |
void EasedValueSmoother< T >::reset | ( | ) |
Referenced by EasedValueSmoother< T >::setSampleRate(), and EasedValueSmoother< T >::setTime().
T EasedValueSmoother< T >::getCurrentValue | ( | ) |
T* EasedValueSmoother< T >::getValuePtr | ( | ) |
void EasedValueSmoother< T >::snapToValue | ( | ) |
void EasedValueSmoother< T >::process | ( | int | n | ) |
References EasedValueSmoother< T >::updateValue().
void EasedValueSmoother< T >::setValue | ( | T | v | ) |
void EasedValueSmoother< T >::updateValue | ( | ) |
References easeQuadraticInOut(), and math::min().
Referenced by EasedValueSmoother< T >::getNextValue(), and EasedValueSmoother< T >::process().
T EasedValueSmoother< T >::getNextValue | ( | ) |
References EasedValueSmoother< T >::updateValue().
void EasedValueSmoother< T >::setValueUnsmoothed | ( | T | v | ) |