Gin
Public Member Functions | List of all members
EasedValueSmoother< T > Class Template Reference

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 ()
 
getCurrentValue ()
 
T * getValuePtr ()
 
void snapToValue ()
 
void process (int n)
 
void setValue (T v)
 
void updateValue ()
 
getNextValue ()
 
void setValueUnsmoothed (T v)
 

Detailed Description

template<class T>
class EasedValueSmoother< T >

Linearly smooths a value in a 0 to 1 range at a constant rate.

Time is for from duration from min to max.

Member Function Documentation

◆ setSampleRate()

template<class T >
void EasedValueSmoother< T >::setSampleRate ( double  sr)

◆ setTime()

template<class T >
void EasedValueSmoother< T >::setTime ( double  t)

◆ isSmoothing()

template<class T >
bool EasedValueSmoother< T >::isSmoothing ( )

◆ reset()

template<class T >
void EasedValueSmoother< T >::reset ( )

◆ getCurrentValue()

template<class T >
T EasedValueSmoother< T >::getCurrentValue ( )

◆ getValuePtr()

template<class T >
T* EasedValueSmoother< T >::getValuePtr ( )

◆ snapToValue()

template<class T >
void EasedValueSmoother< T >::snapToValue ( )

◆ process()

template<class T >
void EasedValueSmoother< T >::process ( int  n)

◆ setValue()

template<class T >
void EasedValueSmoother< T >::setValue ( v)

◆ updateValue()

template<class T >
void EasedValueSmoother< T >::updateValue ( )

◆ getNextValue()

template<class T >
T EasedValueSmoother< T >::getNextValue ( )

◆ setValueUnsmoothed()

template<class T >
void EasedValueSmoother< T >::setValueUnsmoothed ( v)

The documentation for this class was generated from the following file: