AnimationPlan

interface AnimationPlan<T>(source)

Represents a generic animation of type T.

Functions

Link copied to clipboard
abstract fun finished(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(elapsedTime: Measure<Time>): T

Returns the value of the animation after elapsedTime.

Link copied to clipboard
abstract fun velocity(elapsedTime: Measure<Time>): Velocity<T>

Returns the velocity of the animation at the elapsedTime.