Exemple #1
0
        /// <summary>
        /// hexagons neighbors in all directions, assuming no pentagons,
        /// reporting distance from origin
        /// </summary>
        public static int HexRangeDistances(H3Index origin, int k, out List <H3Index> outCells, out List <int> distances)
        {
            (int status, var values) = origin.HexRangeDistances(k);

            outCells  = new List <H3Index>();
            distances = new List <int>();
            foreach (var tuple in values)
            {
                outCells.Add(tuple.Item1);
                distances.Add(tuple.Item2);
            }

            return(status);
        }