code: private static boolean equalAsInts(Vec2d a, Vec2d b) {
          return ((int) a.x) == ((int) b.x) && ((int) a.y) == ((int) b.y);
      }
docs: Return true if the values of the two vectors are equal when cast as ints.
  
  @param a first vector to compare
  @param b second vector to compare
  @return true if the values of the two vectors are equal when cast as ints