getVelocity

abstract fun getVelocity(playTimeNanos: Long, velocity: AnimationVector)

Writes the current per-component velocity at the given elapsed time into velocity, in float-space units per second.

Velocity is expressed per component so interruption preserves each component's motion independently — a size retargeted mid-flight carries its width and height velocities separately rather than a single collapsed scalar. velocity is a caller-owned AnimationVector shaped by the animation's TypeConverter.newVector; the animator writes every component.

Parameters

playTimeNanos

Elapsed time since the animation started, in nanoseconds.

velocity

Output vector receiving one float-space velocity per component.