예제 #1
0
 public static int2 GetPosition2(int index) => IndexMapUtil.ToPosition2(index, AxisSize);
예제 #2
0
 public static int GetIndex(int x, int y) => IndexMapUtil.ToIndex(x, y, AxisSize);
예제 #3
0
 public static int GetIndex(int3 position) => IndexMapUtil.ToIndex(position, CreateSizeCube());
예제 #4
0
 public static int GetIndex(int2 position) => IndexMapUtil.ToIndex(position, AxisSize);
예제 #5
0
 public static int GetNeighborIndex(int3 position, Direction direction) =>
 IndexMapUtil.ToIndex(position + direction.ToInt3(), CreateSizeCube());