Octree
Octree::Octree
Constructs an Octree.
Declaration
Octree(const Math::vec3& position, const Math::vec3& size, uint32_t maxDepth);
Parameters
Name |
Type |
Description |
---|---|---|
position |
Math::vec3 |
The Octree’s center. |
size |
Math::vec3 |
Half the size of the Octree, on each axis (x, y and z). |
maxDepth |
uint32_t |
The Octree’s max depth. |
Returns
An empty Octree centered on position
and with a size equals to the half of size
on each axis (x, y and z).