Class representing a value animated between two points, with easing. More...
#include <eagine/animated_value.hpp>
Public Member Functions | |
animated_value ()=default | |
Default constructor. | |
animated_value (const T &initial) | |
Initializing to the specified value. | |
auto | set (T value, valid_if_positive< F > duration, S slope) -> auto & |
Sets the next point to animate into, duration and sigmoid slope. | |
auto | set (T value, valid_if_positive< F > duration) -> auto & |
Sets the next point to animate into and the duration of the transition. | |
auto | get () const -> T |
Gets the current value between the current and the next point. | |
auto | update (F deltaT) -> auto & |
Updates the transition factor by the specified amount. | |
auto | is_done () const noexcept -> bool |
Indicates if the current transition factor is higher than current duration. | |
Class representing a value animated between two points, with easing.