code: public static long distanceSquared(int x1, int y1, int z1, int x2, int y2, int z2) {
          int dx = x1 - x2;
          int dy = y1 - y2;
          int dz = z1 - z2;
          return dx * dx + dy * dy + dz * dz;
      }
docs: Return the squared distance between <code>(x1, y1, z1)</code> and <code>(x2, y2, z2)</code>.
  
  @param x1
  the x component of the first vector
  @param y1
  the y component of the first vector
  @param z1
  the z component of the first vector
  @param x2
  the x component of the second vector
  @param y2
  the y component of the second vector
  @param z2
  the z component of the second vector
  @return the euclidean distance squared