载入中...
搜索中...
未找到
eve::spatial 命名空间参考

struct  AABB2
 
struct  AABB3
 
class  BSPTree2D
 Binary space partition tree (kd-style AABB splits) for 2D culling. Alternating X/Y splits at node midplanes; spanning items stay on the node. 更多...
 
class  BSPTree3D
 Binary space partition tree (kd-style AABB splits) for 3D culling. Alternating X/Y/Z splits at node midplanes. 更多...
 
class  Octree
 Region octree for 3D AABB broad-phase / scene culling. Same storage rules as QuadTree (smallest fully-containing node). 更多...
 
class  QuadTree
 Region quadtree for 2D AABB broad-phase / map culling. Items are stored in the smallest node that fully contains them; spanning items stay at the parent. Scripts use insert/remove/query* + getResult*. 更多...
 
class  QueryIds
 Last-query hit buffer shared by spatial indexes. Script pattern: call query* → getResultCount / getResultId(i). 更多...
 
class  Spatial
 Spatial index module — broad-phase / map culling structures. Script: spatial <- eve.Spatial(); 更多...
 
class  SpatialHash2D
 Uniform-grid spatial hash for 2D AABB queries (map / particle / entity culling). Items are registered in every overlapped cell. 更多...
 
class  SpatialHash3D
 Uniform-grid spatial hash for 3D AABB / sphere queries. 更多...
 

函数

AABB2 makeAABB2 (float minX, float minY, float maxX, float maxY)
 
AABB3 makeAABB3 (float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
 
uint64_t cellKey2 (int cx, int cy)
 Integer cell key for spatial hashing (stable across platforms for reasonable ranges).
 
uint64_t cellKey3 (int cx, int cy, int cz)
 
 Module_IMPL (Spatial, new Spatial())
 

函数说明

◆ cellKey2()

uint64_t eve::spatial::cellKey2 ( int  cx,
int  cy 
)
inline

Integer cell key for spatial hashing (stable across platforms for reasonable ranges).

在文件 Bounds.h99 行定义.

引用了 cx , 以及 cy.

◆ cellKey3()

uint64_t eve::spatial::cellKey3 ( int  cx,
int  cy,
int  cz 
)
inline

在文件 Bounds.h103 行定义.

引用了 cx, cy, x, y , 以及 z.

◆ makeAABB2()

◆ makeAABB3()

AABB3 eve::spatial::makeAABB3 ( float  minX,
float  minY,
float  minZ,
float  maxX,
float  maxY,
float  maxZ 
)
inline

◆ Module_IMPL()

eve::spatial::Module_IMPL ( Spatial  ,
new   Spatial() 
)