コード例 #1
0
 public HexagonPositionHexagonEdge(HexagonPosition hexagonPosition, HexagonEdge hexagonEdge)
 {
     this.HexagonPosition = hexagonPosition;
     this.HexagonEdge     = hexagonEdge;
 }
コード例 #2
0
 public static bool IsGridPointOnHexagonEdge(HexagonPosition hexagonPosition, HexagonEdge hexagonEdge, GridPoint gridPoint)
 {
     return(HexagonGrid.GetGridPointByHexagonPositionAndPoint(hexagonPosition, hexagonEdge.PointA).Equals(gridPoint) ||
            HexagonGrid.GetGridPointByHexagonPositionAndPoint(hexagonPosition, hexagonEdge.PointB).Equals(gridPoint));
 }