FiniteNumericAnimationPlan

Represents and animation that runs for a finite amount of time.

Inherited properties

Link copied to clipboard

Handles conversions of T to and from V

Functions

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

Returns the duration of this animation including any delay.

Link copied to clipboard
open override 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.

Inherited functions

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.