H3Lib/Api.cs
/// <summary>
/// hexagons neighbors in all directions, assuming no pentagons,
/// reporting distance from origin
/// </summary>
hexagons neighbors in all directions, assuming no pentagons,
reporting distance from origin
hexagons neighbors in all directions assuming no pentagons reporting distance from origin
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;
        }
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 ; }
hexagons neighbors in all directions, assuming no pentagons,
reporting distance from origin
hexagons neighbors in all directions assuming no pentagons reporting distance from origin
origin
H3Index
k
int
List<H3Index>
out
List<int>
out