Animations
Animations are concieved as some sort of function which can update a transform based on a previous transform the total time for which the program has been running and the time difference between the previous update and this one.
The src/Animation.cppm
module defines two basic animations
Translate at a constant rate.
Rotate at a constant rate.
As well as various higher order animation constrcuts such as
A combination of several animations.
A limit to the duration of an animation.
A sequence of animations each performed one after the other.
A loop of animations which behaves similarly to a sequence except that the animation is reset to a known state before repeating the animation.
There are overloads to binary operators to more easily compose animations.
A logical and
&
of two or more animations creates a combination.A logical and
&
of an animation and a duration creates a limited time animation.A logical or
|
of two or more time limited animations creates a sequence of animations.