Example #1
0
 public VMObstacleSetNodeOld(VMObstacleSetNodeOld last)
 {
     Rect      = last.Rect;
     Dimension = last.Dimension;
     if (last.LeftChild != null)
     {
         LeftChild = new VMObstacleSetNodeOld(last.LeftChild);
     }
     if (last.RightChild != null)
     {
         RightChild = new VMObstacleSetNodeOld(last.RightChild);
     }
 }
Example #2
0
        private int GetNode(IntersectRectDimension dir, BaseMeshTriangle rect)
        {
            var ind = GetNode();

            Nodes[ind] = new VMObstacleSetNode()
            {
                Dimension  = dir,
                Rect       = rect,
                LeftChild  = -1,
                RightChild = -1,
                Index      = ind,

                x1 = rect.x1,
                x2 = rect.x2,
                y1 = rect.y1,
                y2 = rect.y2
            };
            return(ind);
        }