Contents

velocity(fromValue:toValue:initialVelocity:time:)

Calculates the velocity of the spring at a given time given a starting and ending value for the spring to travel.

Declaration

func velocity<V>(fromValue: V, toValue: V, initialVelocity: V, time: TimeInterval) -> V where V : Animatable

See Also

Getting spring state