code: public static boolean isEpsilonZero (double x, double y, double epsilon) {
          return Math.abs(x) <= epsilon && Math.abs(y) <= epsilon;
      }
docs: Returns true if the supplied vector's x and y components are {@code epsilon} close to zero
  magnitude.