group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
physics::simd Namespace Reference

Functions

uint32_t aabbBatchOverlap (const float(&minX)[4], const float(&minY)[4], const float(&minZ)[4], const float(&maxX)[4], const float(&maxY)[4], const float(&maxZ)[4], glm::vec3 queryMin, glm::vec3 queryMax) noexcept
 Test 4 candidate AABBs against one query AABB.

Function Documentation

◆ aabbBatchOverlap()

uint32_t physics::simd::aabbBatchOverlap ( const float(&) minX[4],
const float(&) minY[4],
const float(&) minZ[4],
const float(&) maxX[4],
const float(&) maxY[4],
const float(&) maxZ[4],
glm::vec3 queryMin,
glm::vec3 queryMax )
inlinenoexcept

Test 4 candidate AABBs against one query AABB.

Returns a 4-bit mask: bit i = 1 iff candidate i overlaps the query.

AoSoA layout — caller packs candidates into 6 SoA arrays (minX/Y/Z, maxX/Y/Z) of 4 floats each. Suits the broadphase tree's "test 4 nodes against one query" pattern.