public HexF[] Corners() { var result = new HexF[6]; for (int i = 0; i < 6; i++) { result[i] = Corner(i); } return(result); }
public HexF[] CornersWrapping() { var result = new HexF[7]; for (int i = 0; i < 7; i++) { result[i] = Corner(i); } return(result); }
// Not a constructor to signify precision loss public static Hex FromHexF(HexF hexF) { return(new Hex(Convert.ToInt32(hexF.Q), Convert.ToInt32(hexF.R))); }
private bool Equals(HexF other) { // TODO: Add comparsion within tolerance return(_coords.Equals(other._coords)); }