Example #1
0
 public bool Equals(HexCoords other) => (q, r) == (other.q, other.r);
Example #2
0
 public static int Distance(HexCoords a, HexCoords b)
 {
     return((a - b).Length());
 }
Example #3
0
 public int Distance(Hex other)
 {
     return(HexCoords.Distance(coords, other.coords));
 }
Example #4
0
 public Hex(HexCoords coords)
 {
     this.coords = coords;
 }
Example #5
0
 public bool Contains(HexCoords coords)
 {
     return(AllowedCoordinates.Contains(coords));
 }