Octree.cpp
// Gets the cube data at the specified position. Returns a pointer to the data (valid until any write operations are performed), or null if out-of-bounds.
Gets the cube data at the specified position. Returns a pointer to the data (valid until any write operations are performed), or null if out-of-bounds.
Gets the cube data at the specified position . Returns a pointer to the data ( valid until any write operations are performed ) or null if out - of - bounds .
OctreeData* Octree::QueryCube(double x, double y, double z)
{
    if (!InLimits(x, y, z))
    {
        return nullptr;
    }
    return RecursiveQueryCube(-limits/2, -limits/2, -limits/2, limits/2, limits/2, limits/2, x, y, z, pRootNode);
}
OctreeData * Octree :: QueryCube ( double x , double y , double z ) { if ( ! InLimits ( x , y , z ) ) { return nullptr ; } return RecursiveQueryCube ( - limits / 2 , - limits / 2 , - limits / 2 , limits / 2 , limits / 2 , limits / 2 , x , y , z , pRootNode ) ; }
Gets the cube data at the specified position.
Gets the cube data at the specified position .