OctreeT Class |
Namespace: Archon.SwissArmyLib.Partitioning
public class Octree<T> : IPoolable, IDisposable
The OctreeT type exposes the following members.
Name | Description | |
---|---|---|
Bounds |
Gets the bounds of this octree node.
| |
Count |
Gets the total amount of items from this node and down.
| |
Depth |
Gets the depth of this octree node.
| |
IsSplit |
Gets whether this node has been split.
| |
MaxDepth |
Gets the maximum depth that the octree can go.
| |
MaxItems |
Gets the maximum amount of items this node can contain before splitting.
|
Name | Description | |
---|---|---|
Clear |
Clears all items in this node and removes subnodes.
| |
Create |
Creates an Octree.
| |
Destroy |
Destroys a tree, making it available for being recycled.
Do not use the tree again after calling this.
| |
Dispose |
Destroys the octree using Destroy(OctreeT).
Do not use the tree after calling this!
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
Insert |
Inserts an item with the specified bounds into the octree.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove |
Removes an item with the specified bounds from the octree.
| |
Retrieve(Bounds) |
Retrieves all potential matches for the given Bounds.
Careful, this method creates a new HashSetT.
You might want to use Retrieve(Bounds, HashSetT) instead if you call this often.
| |
Retrieve(Bounds, HashSetT) |
Retrieves all potential matches for the given Bounds and adds them to results.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |