JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::SmoothedValue< T > Struct Template Reference

#include <JPLSpatial/Utilities/SmoothedValue.h>

Public Member Functions

void SetDurationExp (uint32_t numTicks)
 
void Tick ()
 
GetNext ()
 

Static Public Member Functions

staticGetExpAlpha (uint32_t numOfTicks)
 
staticGetInvAlpha (uint32_t numOfTicks)
 
static SmoothedValue CreateExpSmoothing (uint32_t numOfTicks)
 
static SmoothedValue CreateSimpleSmoothing (uint32_t numOfTicks)
 
static SmoothedValue CreateExpSmoothing (T current, T target, uint32_t numOfTicks)
 
static SmoothedValue CreateSimpleSmoothing (T current, T target, uint32_t numOfTicks)
 

Public Attributes

Current = T(0.0)
 
Target = T(0.0)
 
Alpha = T(1.0)
 

Member Function Documentation

◆ CreateExpSmoothing() [1/2]

template<class T >
static SmoothedValue JPL::SmoothedValue< T >::CreateExpSmoothing ( current,
target,
uint32_t  numOfTicks 
)
inlinestatic

◆ CreateExpSmoothing() [2/2]

template<class T >
static SmoothedValue JPL::SmoothedValue< T >::CreateExpSmoothing ( uint32_t  numOfTicks)
inlinestatic

◆ CreateSimpleSmoothing() [1/2]

template<class T >
static SmoothedValue JPL::SmoothedValue< T >::CreateSimpleSmoothing ( current,
target,
uint32_t  numOfTicks 
)
inlinestatic

◆ CreateSimpleSmoothing() [2/2]

template<class T >
static SmoothedValue JPL::SmoothedValue< T >::CreateSimpleSmoothing ( uint32_t  numOfTicks)
inlinestatic

◆ GetExpAlpha()

template<class T >
static T JPL::SmoothedValue< T >::GetExpAlpha ( uint32_t  numOfTicks)
inlinestatic

◆ GetInvAlpha()

template<class T >
static T JPL::SmoothedValue< T >::GetInvAlpha ( uint32_t  numOfTicks)
inlinestatic

◆ GetNext()

template<class T >
T JPL::SmoothedValue< T >::GetNext ( )
inline

◆ SetDurationExp()

template<class T >
void JPL::SmoothedValue< T >::SetDurationExp ( uint32_t  numTicks)
inline

◆ Tick()

template<class T >
void JPL::SmoothedValue< T >::Tick ( )
inline

Member Data Documentation

◆ Alpha

template<class T >
T JPL::SmoothedValue< T >::Alpha = T(1.0)

◆ Current

template<class T >
T JPL::SmoothedValue< T >::Current = T(0.0)

◆ Target

template<class T >
T JPL::SmoothedValue< T >::Target = T(0.0)

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