Tests/NUnit/H3Suite/Lib/Utility.cs
/// <summary>
/// Call the callback for every index at the given resolution in a
/// specific base cell
/// </summary>
Call the callback for every index at the given resolution in a
specific base cell
Call the callback for every index at the given resolution in a specific base cell
public static void IterateBaseCellIndexesAtRes(int res, Action<H3Index> callback, int baseCell)
        {
            var bc = new H3Index(0, baseCell, 0);
            var (_, children) = bc.Uncompact(res);
            foreach (var index in children.Where(c=>c!=0))
            {
                callback(index);
            }
            children.Clear();
        }
public static void IterateBaseCellIndexesAtRes ( int res , Action < H3Index > callback , int baseCell ) { var bc = new H3Index ( 0 , baseCell , 0 ) ; var ( _ , children ) = bc . Uncompact ( res ) ; foreach ( var index in children . Where ( c => c != 0 ) ) { callback ( index ) ; } children . Clear ( ) ; }
Call the callback for every index at the given resolution in a
specific base cell
Call the callback for every index at the given resolution in a specific base cell
res
int
callback
Action<H3Index>
baseCell
int