Beispiel #1
0
        public static MyHexPosition CubeToAxial(CubeHexPosition cube)
        {
            var realAxial = new MyHexPosition(cube.X, cube.Z);

            return(new MyHexPosition(-realAxial.U - (realAxial.V), -realAxial.V));
        }
Beispiel #2
0
 protected bool Equals(CubeHexPosition other)
 {
     return(_x == other._x && _y == other._y && _z == other._z);
 }