MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ damp_asymmetric() [2/2]

template<typename T >
T MayaFlux::Kinesis::damp_asymmetric ( T  current,
T  target,
T  rise,
T  fall,
T  dt 
)
inlinenoexcept

damp with separate time constants for rising and falling.

Moves current toward target using rise when the target is above it and fall when below, both on the same scale as the single value of damp. A level that swells slowly and fades quickly, or the reverse, is one pair of numbers.

Definition at line 159 of file Scalar.hpp.

160{
161 return damp(current, target, target > current ? rise : fall, dt);
162}
glm::vec2 current
T damp(T current, T target, T smoothing, T dt) noexcept
Exponential smoothing: move current toward target at rate smoothing over time step dt.
Definition Scalar.hpp:143

References current, and damp().

Referenced by damp_asymmetric().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: