Exemplo n.º 1
0
 public List <RectInt> GetSpaces()
 {
     if (IsLeaf())
     {
         return(new List <RectInt> {
             rect
         });
     }
     else
     {
         List <RectInt> lList = left?.GetSpaces();
         List <RectInt> rList = right?.GetSpaces();
         lList.AddRange(rList);
         return(lList);
     }
 }
Exemplo n.º 2
0
 public List <RectInt> GetSpaces()
 {
     return(rootSubSpace.GetSpaces());
 }