Пример #1
0
 public HexEdgeType GetEdgeType(HexDirection direction)
 {
     return(HexMetrics.GetEdgeType(elevation, neighbors[(int)direction].elevation));
 }
Пример #2
0
 public HexEdgeType GetEdgeType(HexCell otherCell)
 {
     return(HexMetrics.GetEdgeType(elevation, otherCell.elevation));
 }
Пример #3
0
        private void Triangulate(HexDirection direction, HexCell cell)
        {
            var center = cell.Position;
            var e      = new EdgeVertices(center + HexMetrics.GetFirstSolidCorner(direction), center + HexMetrics.GetSecondSolidCorner(direction));

            TriangulateEdgeFan(center, e, cell.Color);
            if (direction <= HexDirection.SE)
            {
                TriangulateConnection(direction, cell, e);
            }
        }