载入中...
搜索中...
未找到
Bounds.h
浏览该文件的文档.
Definition Scene.h:36
AABB2 makeAABB2(float minX, float minY, float maxX, float maxY)
Builds a normalized 2D AABB (swaps inverted mins/maxes).
Definition Bounds.h:108
AABB3 makeAABB3(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Builds a normalized 3D AABB (swaps inverted mins/maxes).
Definition Bounds.h:115
uint64_t cellKey3(int cx, int cy, int cz)
Packs 3D cell indices into a 63-bit hash key (21 bits/axis).
Definition Bounds.h:128
uint64_t cellKey2(int cx, int cy)
Integer cell key for spatial hashing (stable across platforms for reasonable ranges).
Definition Bounds.h:123
bool containsPoint(float x, float y) const
True if the point lies inside or on the boundary.
Definition Bounds.h:29
bool containsAABB(const AABB2 &o) const
True if the other box is fully inside this one.
Definition Bounds.h:34
bool intersectsAABB(const AABB2 &o) const
True if the boxes overlap (inclusive edges).
Definition Bounds.h:39
bool intersectsCircle(float cx, float cy, float radius) const
True if the circle overlaps this 2D box.
Definition Bounds.h:44
bool containsPoint(float x, float y, float z) const
True if the point lies inside or on the boundary.
Definition Bounds.h:79
bool intersectsAABB(const AABB3 &o) const
True if the boxes overlap (inclusive edges).
Definition Bounds.h:90
bool containsAABB(const AABB3 &o) const
True if the other box is fully inside this one.
Definition Bounds.h:84
bool intersectsSphere(float cx, float cy, float cz, float radius) const
True if the sphere overlaps this 3D box.
Definition Bounds.h:96