Пример #1
0
        public static RegionEdge Connect(RegionNode left, RegionNode right, Vector3 pointA, Vector3 pointB)
        {
            RegionEdge e = new RegionEdge {
                PointA = pointA, PointB = pointB
            };

            e.Left  = left;
            e.Right = right;
            e.Left.Edges.Add(e.Right, e);
            e.Right.Edges.Add(e.Left, e);
            return(e);
        }
Пример #2
0
 public static RegionEdge Connect(RegionNode left, RegionNode right, Vector3 pointA, Vector3 pointB)
 {
     RegionEdge e = new RegionEdge { PointA = pointA, PointB = pointB };
     e.Left = left;
     e.Right = right;
     e.Left.Edges.Add(e.Right, e);
     e.Right.Edges.Add(e.Left, e);
     return e;
 }