Esempio n. 1
0
    public static int Distance(Hex a, Hex b)
    {
        // convert offset coordinate to cube coordinate
        CubeCoord ac = HexCoordinate.OffsetToCube(a.Coordinates);
        CubeCoord bc = HexCoordinate.OffsetToCube(b.Coordinates);

        return(CubeDistance(ac, bc));
    }