private OcTree <TObject> CreateNode(BoundingBox boundingBox, TObject item) { OcTree <TObject> ret = new OcTree <TObject>(boundingBox, new[] { item }, this.MinimumSize); ret.parent = this; return(ret); }
private OcTree <TObject> CreateNode(BoundingBox boundingBox, IEnumerable <TObject> objList) //complete & tested { if (!objList.Any()) { return(null); } OcTree <TObject> ret = new OcTree <TObject>(boundingBox, objList, this.MinimumSize); ret.parent = this; return(ret); }