settlingDuration(target:initialVelocity:epsilon:)
The estimated duration required for the spring system to be considered at rest.
Declaration
func settlingDuration<V>(target: V, initialVelocity: V = .zero, epsilon: Double) -> TimeInterval where V : VectorArithmeticDiscussion
The epsilon value specifies the threshold for how small all subsequent values need to be before the spring is considered to have settled.