Class SpatialOctree<T extends SpatialOctree.SpatialObject>
java.lang.Object
org.episteme.core.mathematics.structures.SpatialOctree<T>
- Type Parameters:
T- The type of objects stored in the octree, must implement SpatialObject.
Generic Spatial Octree structure for high-performance spatial partitioning.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a node in the Spatial Octree.static interfaceInterface for objects that can be stored in a SpatialOctree. -
Constructor Summary
ConstructorsConstructorDescriptionSpatialOctree(Real centerX, Real centerY, Real centerZ, Real size) Creates a new Spatial Octree with given bounds. -
Method Summary
Modifier and TypeMethodDescriptionvoidRecursively computes the center of mass for all nodes.getRoot()Returns the root node of the octree.voidInserts an object into the octree.
-
Constructor Details
-
SpatialOctree
-
-
Method Details
-
insert
Inserts an object into the octree.- Parameters:
object- The object to insert
-
computeCenterOfMass
public void computeCenterOfMass()Recursively computes the center of mass for all nodes. -
getRoot
-