public static xTileHandler CreateMain([NotNull] BoxTree tree) { var created = new xTileHandler { _tile = tree._mainTile, _box = tree._mainBox.Clone() }; return(created); }
public xTileHandler GetChild0() { BoxTile child = _tile.Child0; if (child == null) { return(null); } int splitDim = _tile.SplitDimension; Box childBox = _box.Clone(); childBox.Max[splitDim] = child.MaxInParentSplitDim; var childTile = new xTileHandler { _tile = child, _box = childBox }; return(childTile); }