JUCE
|
A selection of options available for customising a spring style easing function. More...
#include <juce_Easings.h>
Public Member Functions | |
auto | withFrequency (float newFrequency) const |
Specifies the number of oscillations the easing would undergo. More... | |
auto | withAttenuation (float newAttenuation) const |
Affects how quickly the oscillations die down. More... | |
auto | withExtraAttenuationRange (float newExtraAttenuationRange) const |
Specifies the input value at which an extra non-physical attenuation begins to be applied. More... | |
auto | getFrequency () const |
Returns the value specified by withFrequency. More... | |
auto | getAttenuation () const |
Returns the value specified by withAttenuation. More... | |
auto | getExtraAttenuationRange () const |
Returns the value specified by withExtraAttenuationRange. More... | |
A selection of options available for customising a spring style easing function.
auto SpringEasingOptions::withFrequency | ( | float | newFrequency | ) | const |
Specifies the number of oscillations the easing would undergo.
This also affects the speed of the movement.
References withMember().
auto SpringEasingOptions::withAttenuation | ( | float | newAttenuation | ) | const |
Affects how quickly the oscillations die down.
References withMember().
auto SpringEasingOptions::withExtraAttenuationRange | ( | float | newExtraAttenuationRange | ) | const |
Specifies the input value at which an extra non-physical attenuation begins to be applied.
The value must be in the range [0.05f, 0.98f].
This ensures that the easing always reaches an output value of 1.0f when the input value is 1.0f. If the attenuation is set sufficiently high this won't have a visible effect.
References withMember().
auto SpringEasingOptions::getFrequency | ( | ) | const |
Returns the value specified by withFrequency.
If no value was specified the default value is 3.0f.
auto SpringEasingOptions::getAttenuation | ( | ) | const |
Returns the value specified by withAttenuation.
If no value was specified the default value is 3.0f.
auto SpringEasingOptions::getExtraAttenuationRange | ( | ) | const |
Returns the value specified by withExtraAttenuationRange.
If no value was specified the default value is 0.25f.