7 for(
int i = 0; i < n; i++)
19auto mix(
float a,
float b,
float weight,
float t) ->
float
21 const float mix = ((1.0f - weight) *
a) + ((1.0f - weight) *
b);
27 return ((1.0f - t) *
a) + (t *
b);
37 return a * (1.0f - t);
42 return t * (1.0f - t);
Provides a sequence-based action management system for controlling and scheduling actions.
auto mix(float a, float b, float weight, float t) -> float
Mixes two values based on a weighted progress factor.
auto flip(float x) -> float
Flips a normalized value (1.0 becomes 0.0, 0.0 becomes 1.0).
auto crossfade(float a, float b, float t) -> float
Creates a crossfade effect between two values based on progress.
auto reverse_scale(float a, float t) -> float
Scales a value in reverse by a factor.
auto arch(float t) -> float
Computes an arch effect (parabolic curve) based on progress.
auto square(float x, int n) -> float
Computes the square of a number raised to a power.