packages/flip-toolkit/src/forked-rebound/Spring.js
/**
   * Check if the Spring is atRest meaning that it's currentValue and
   * endValue are the same and that it has no velocity. The previously
   * described thresholds for speed and displacement define the bounds
   * of this equivalence check. If the Spring has 0 tension, then it will
   * be considered at rest whenever its absolute velocity drops below the
   * restSpeedThreshold.
   * @public
   */
Check if the Spring is atRest meaning that it's currentValue and
endValue are the same and that it has no velocity. The previously
described thresholds for speed and displacement define the bounds
of this equivalence check. If the Spring has 0 tension, then it will
be considered at rest whenever its absolute velocity drops below the
restSpeedThreshold.
@public
Check if the Spring is atRest meaning that it ' s currentValue and endValue are the same and that it has no velocity . The previously described thresholds for speed and displacement define the bounds of this equivalence check . If the Spring has 0 tension then it will be considered at rest whenever its absolute velocity drops below the restSpeedThreshold . @public
isAtRest() {
    const isAtRest =
      Math.abs(this._currentState.velocity) < this._restSpeedThreshold &&
      (this.getDisplacementDistanceForState(this._currentState) <=
        this._displacementFromRestThreshold ||
        this._springConfig.tension === 0)
    return isAtRest
  }
isAtRest ( ) { const isAtRest = Math . abs ( this . _currentState . velocity ) < this . _restSpeedThreshold && ( this . getDisplacementDistanceForState ( this . _currentState ) <= this . _displacementFromRestThreshold || this . _springConfig . tension === 0 ) return isAtRest }
Check if the Spring is atRest meaning that it's currentValue and
 endValue are the same and that it has no velocity.
Check if the Spring is atRest meaning that it ' s currentValue and endValue are the same and that it has no velocity .