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); }
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; }