Module vek::transition
source · [−]Expand description
Convenience structures for representing a transition from one value to another.
The Transition
struct is useful in animation, especially since it allows
you to customize the interpolation function via what’s called a “Progress Mapper”, i.e
an object that also acts as a function which, given a “progress” value, returns
the LERP factor to use.
This is especially powerful since it allows for any kind of interpolation curve : exponential, logarithmic, sines, squares… One could even imagine a Progress Mapper based on Bézier curves.
Structs
A pass-through functor that returns progress values directly as LERP factors.
A function pointer container that can map a progress value to a LERP factor.
A convenience structure for storing a progression from one value to another.
Traits
A functor that maps a progress value to a LERP factor.
Type Definitions
A convenience structure for storing a linear progression from one value to another.