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