示例#1
0
 public int Distance(Hex b)
 {
     return(Subtract(b).Length());
 }
示例#2
0
 public Hex Subtract(Hex b)
 {
     return(new Hex(q - b.q, r - b.r, s - b.s));
 }
示例#3
0
 public Hex Neighbor(int direction)
 {
     return(Add(Hex.Direction(direction)));
 }
示例#4
0
 public Hex Add(Hex b)
 {
     return(new Hex(q + b.q, r + b.r, s + b.s));
 }