示例#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());