载入中...
搜索中...
未找到
Bounds.h 文件参考
#include <algorithm>
#include <cmath>
#include <cstdint>

浏览源代码.

类

struct  eve::spatial::AABB2
 Axis-aligned 2D bounding box (min/max inclusive). 更多...
 
struct  eve::spatial::AABB3
 Axis-aligned 3D bounding box (min/max inclusive). 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::spatial
 

函数

AABB2 eve::spatial::makeAABB2 (float minX, float minY, float maxX, float maxY)
 Builds a normalized 2D AABB (swaps inverted mins/maxes).
 
AABB3 eve::spatial::makeAABB3 (float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
 Builds a normalized 3D AABB (swaps inverted mins/maxes).
 
uint64_t eve::spatial::cellKey2 (int cx, int cy)
 Integer cell key for spatial hashing (stable across platforms for reasonable ranges).
 
uint64_t eve::spatial::cellKey3 (int cx, int cy, int cz)
 Packs 3D cell indices into a 63-bit hash key (21 bits/axis).