[−][src]Module vek::transition
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
IdentityProgressMapper | A pass-through functor that returns progress values directly as LERP factors. |
ProgressMapperFn | A function pointer container that can map a progress value to a LERP factor. |
Transition | A convenience structure for storing a progression from one value to another. |
Traits
ProgressMapper | A functor that maps a progress value to a LERP factor. |
Type Definitions
LinearTransition | A convenience structure for storing a linear progression from one value to another. |