Ejemplo n.º 1
0
        /// <summary>
        /// Transforms coordinates from the IJ coordinate system to the IJK+ coordinate system
        /// </summary>
        /// <param name="ij">The input IJ coordinates</param>
        /// <param name="ijk">The output IJK+ coordinates</param>
        /// <!-- Based off 3.2.0 -->
        public static void ijToIjk(LocalIJ.CoordIJ ij, ref CoordIJK ijk)
        {
            ijk.i = ij.i;
            ijk.j = ij.j;
            ijk.k = 0;

            _ijkNormalize(ref ijk);
        }
Ejemplo n.º 2
0
        public static HexRangeResult experimentalLocalIjToH3(Code.H3Index origin, Code.LocalIJ.CoordIJ ij)
        {
            Code.H3Index h3     = new Code.H3Index(0);
            var          result = LocalIJ.experimentalLocalIjToH3(origin, ij, ref h3);

            return(new HexRangeResult
            {
                Result = result,
                Indexes = new H3Index[] { new H3Index {
                                              Value = h3.value
                                          } }
            });
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Transforms coordinates from the IJK+ coordinate system to the IJ coordinate system
 /// </summary>
 /// <param name="ijk">The input IJK+ coordinates</param>
 /// <param name="ij">The output IJ coordinates</param>
 /// <!-- Based off 3.2.0 -->
 public static void ijkToIj(CoordIJK ijk, ref LocalIJ.CoordIJ ij)
 {
     ij.i = ijk.i - ijk.k;
     ij.j = ijk.j - ijk.k;
 }