Esempio 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);
     }
 }
Esempio n. 2
0
 public List <RectInt> GetSpaces()
 {
     return(rootSubSpace.GetSpaces());
 }