Module enterpolation::easing
source · Expand description
Module for easing functions.
Easing function, in the context of this crate, are function which take as only input a real number in [0.0,1.0] and return a real number in [0.0,1.0].
Structs
- This is just a wrapper for easing functions.
- Identity as Curve.
- Plateau is an easing curve which - therefore the name - create constant plateaus if given to an interpolation which works with factors for which an easing function gets applied.
Functions
- Flips the “start” and “end”.
- Smoothend, also known as ease-out, smooths out the end of the graph.
- A smoother variant of the smoothstep function, see https://en.wikipedia.org/wiki/Smoothstep
- Smoothstart, also known as ease-in, smooths out the start of the graph.
- Smoothstep function, see https://en.wikipedia.org/wiki/Smoothstep