Contents

force(fromValue:toValue:position:velocity:)

Calculates the force upon the spring given a current position, velocity, and divisor from the starting and end values for the spring to travel.

Declaration

func force<V>(fromValue: V, toValue: V, position: V, velocity: V) -> V where V : Animatable

Discussion

This value is in units of the vector type per second squared.

See Also

Calculating forces and durations