Beispiel #1
0
 public static Vector3 ToVector3(this HexCubeCoord coord)
 {
     return(new Vector3(coord.x, coord.y, coord.z));
 }
Beispiel #2
0
 public static int Distance(HexCubeCoord a, HexCubeCoord b)
 {
     return((Math.Abs(a.x - b.x) + Math.Abs(a.y - b.y) + Math.Abs(a.z - b.z)) / 2);
 }