public static Vector2Int Self_InverseEqual(int x, int y, int numberCells) { //0,0 -> 2,0 //1,0 -> 1,0 //2,0 -> 0,0 //0,1 -> 2,1 //1,1 -> 1,1 //2,1 -> 0,1 //0,2 -> 2,2 //1,2 -> 1,2 //2,2 -> 0,2 int newX = WorldMath.InverseN(x, numberCells); int newY = WorldMath.EqualN(y); return(new Vector2Int(newX, newY)); }
public static Vector2Int Self_EqualEqual(int x, int y) { //0,0 -> 0,0 //1,0 -> 1,0 //2,0 -> 2,0 //0,1 -> 0,1 //1,1 -> 1,1 //2,1 -> 2,1 //0,2 -> 0,2 //1,2 -> 1,2 //2,2 -> 2,2 int newX = WorldMath.EqualN(x); int newY = WorldMath.EqualN(y); return(new Vector2Int(newX, newY)); }