H3Lib/Extensions/H3IndexExtensions.cs
/// <summary>
/// Sets specified index digit of H3Index cell
/// </summary>
Sets specified index digit of H3Index cell
Sets specified index digit of H3Index cell
public static H3Index SetIndexDigit(this H3Index cell, int res, ulong digit)
        {
            return  (cell & ~(Constants.H3Index.H3_DIGIT_MASK << ((Constants.H3.MAX_H3_RES - res) * Constants.H3Index.H3_PER_DIGIT_OFFSET))) |
                      (digit << (Constants.H3.MAX_H3_RES - res) * Constants.H3Index.H3_PER_DIGIT_OFFSET);
        }
public static H3Index SetIndexDigit ( this H3Index cell , int res , ulong digit ) { return ( cell & ~ ( Constants . H3Index . H3_DIGIT_MASK << ( ( Constants . H3 . MAX_H3_RES - res ) * Constants . H3Index . H3_PER_DIGIT_OFFSET ) ) ) | ( digit << ( Constants . H3 . MAX_H3_RES - res ) * Constants . H3Index . H3_PER_DIGIT_OFFSET ) ; }
Sets specified index digit of H3Index cell
Sets specified index digit of H3Index cell
H3Index
this
res
int
digit
ulong