예제 #1
0
        public void GetRes0Indexes()
        {
            var indexes = BaseCellsExtensions.GetRes0Indexes();

            Assert.AreEqual(indexes[0].Value, 0x8001fffffffffffUL);
            Assert.AreEqual(indexes[121].Value, 0x80f3fffffffffffUL);
        }
예제 #2
0
파일: Api.cs 프로젝트: wangpei421/h3net
 /// <summary>
 /// provides all base cells in H3Index format*/
 /// </summary>
 public static void GetRes0Indexes(out List <H3Index> outCells)
 {
     outCells = BaseCellsExtensions.GetRes0Indexes();
 }
예제 #3
0
파일: Utility.cs 프로젝트: wangpei421/h3net
 /// <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());
 }