Om
1.0.0
A universal framework for multimedia simulation
|
A class that stores the state for a time-domain linear interpolation. More...
#include <omSoundLerpState.h>
Public Member Functions | |
LerpState () | |
Create a new default linear interpolation state. More... | |
LerpState (T newCurrent, T newTarget, TimeType newTime) | |
Create a new linear interpolation state object with the given current, target, and time values. More... | |
Bool | isFinished () const |
Return whether or not the interpolation is finished. More... | |
Public Attributes | |
T | current |
The current interpolation value. More... | |
T | target |
The target value for the interpolation. More... | |
TimeType | time |
The time that it should take for the remaining interpolation to occur. More... | |
A class that stores the state for a time-domain linear interpolation.
|
inline |
Create a new default linear interpolation state.
|
inline |
Create a new linear interpolation state object with the given current, target, and time values.
|
inline |
Return whether or not the interpolation is finished.
The interpolation is finished when the time remaining on the interpolation is equal to zero.
T om::sound::base::LerpState< T, TimeType >::current |
The current interpolation value.
T om::sound::base::LerpState< T, TimeType >::target |
The target value for the interpolation.
TimeType om::sound::base::LerpState< T, TimeType >::time |
The time that it should take for the remaining interpolation to occur.