public void GetRes0Indexes() { var indexes = BaseCellsExtensions.GetRes0Indexes(); Assert.AreEqual(indexes[0].Value, 0x8001fffffffffffUL); Assert.AreEqual(indexes[121].Value, 0x80f3fffffffffffUL); }
/// <summary> /// provides all base cells in H3Index format*/ /// </summary> public static void GetRes0Indexes(out List <H3Index> outCells) { outCells = BaseCellsExtensions.GetRes0Indexes(); }
/// <summary> /// List of cells at a given resolutions /// </summary> /// <param name="res">resolution</param> private static List <H3Index> GetCellsAtRes(int res) { var(_, resCells) = BaseCellsExtensions.GetRes0Indexes().Uncompact(res); return(resCells.Where(c => c.Value != 0).ToList()); }