Easing namespace
#include <Jazz2/UI/Menu/Tweening.h>
Easing functions.
Collection of normalized easing curves mapping a linear progress to an eased value. Used by AnimatedValue and the menu transition system to shape animations in a single shared place instead of the formulas being scattered across sections.
Typedefs
- using Fn = float(*)(float)
- Pointer to an easing function.
Functions
- auto Linear(float t) -> float
- Linear interpolation (no easing).
- auto OutQuad(float t) -> float
- Quadratic ease-out.
- auto OutCubic(float t) -> float
- Cubic ease-out.
- auto OutQuart(float t) -> float
- Quartic ease-out.
- auto InOutSine(float t) -> float
- Sinusoidal ease-in-out.
- auto SmoothStep(float t) -> float
- Smoothstep (Hermite) ease-in-out.
- auto OutElastic(float t) -> float
- Elastic ease-out (overshoots and settles).
- auto OutBack(float t) -> float
- Back ease-out (slight overshoot).
- auto OutBounce(float t) -> float
- Bounce ease-out.