Beispiel #1
0
        public static AxialCoord OffsetToAxial(OffsetCoord o)
        {
            int q = o.col;
            int r = o.row - (int)((o.col + offset * (o.col & 1)) / 2);

            return(new AxialCoord(q, r));
        }
Beispiel #2
0
 public static AxialCoord ToAxialCoord(this OffsetCoord self)
 {
     return(CoordConvert.OffsetToAxial(self));
 }