示例#1
0
        public HexF[] Corners()
        {
            var result = new HexF[6];

            for (int i = 0; i < 6; i++)
            {
                result[i] = Corner(i);
            }

            return(result);
        }
示例#2
0
        public HexF[] CornersWrapping()
        {
            var result = new HexF[7];

            for (int i = 0; i < 7; i++)
            {
                result[i] = Corner(i);
            }

            return(result);
        }
示例#3
0
 // Not a constructor to signify precision loss
 public static Hex FromHexF(HexF hexF)
 {
     return(new Hex(Convert.ToInt32(hexF.Q), Convert.ToInt32(hexF.R)));
 }
示例#4
0
 private bool Equals(HexF other)
 {
     // TODO: Add comparsion within tolerance
     return(_coords.Equals(other._coords));
 }