getDefaultVelocityAddition method

  1. @protected
double getDefaultVelocityAddition(
  1. double velocity,
  2. Tolerance tolerance
)

Implementation

@protected
double getDefaultVelocityAddition(double velocity, Tolerance tolerance) {
  assert(velocity != null);
  assert(tolerance != null);

  return velocity.abs() > tolerance.velocity ? 0.5 * velocity.sign : 0.0;
}