public boolean isSignificant(double dx,double dy){
  return Math.abs(dx) > tolerance || Math.abs(dy) > tolerance;
}

public boolean isSignificant ( double dx , double dy ) { return Math . abs ( dx ) > tolerance || Math . abs ( dy ) > tolerance ; }
returns true if the absolute value of one of the given parameters is greater than the tolerance .
