void (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); }