private static void updateLocation(Point[] points, int indexBase, int indexDest, int xSign, int ySign, int areaSize) {
    points[indexDest].setLocation(points[indexBase].x + xSign * areaSize, points[indexBase].y + ySign * areaSize);
  }
private static void updateLocation(Point[] points, int indexBase, int indexDest, int xSign, int ySign, int areaSize)