NumericAnimationPlan

Low-level animation for values T that can be converted to numeric values using a AnimationDataConverter. This type is used by higher-level APIs like animation and can be created using tween for tween animations that leverage EasingFunctions.

Inheritors

Properties

Link copied to clipboard

Handles conversions of T to and from V

Functions

Link copied to clipboard
abstract fun finished(start: V, end: V, initialVelocity: Velocity<V>, elapsedTime: Measure<Time>): Boolean

Returns true IFF the animation if completed after elapsedTime. NOTE: implementations SHOULD NOT return true if the animation has not started yet.

Link copied to clipboard
abstract fun value(start: V, end: V, initialVelocity: Velocity<V>, elapsedTime: Measure<Time>): V

Returns the value of the animation at the elapsedTime, given the initial conditions.

Link copied to clipboard
abstract fun velocity(start: V, end: V, initialVelocity: Velocity<V>, elapsedTime: Measure<Time>): Velocity<V>

Returns the velocity of the animation at the elapsedTime, given the initial conditions.