Searched refs:aabb (Results 1 – 2 of 2) sorted by relevance
1287 IntersectionSphereAABB(const SPHERE* sphere, const AABB* aabb) in IntersectionSphereAABB() argument1291 if (sphere->C.x < aabb->Pmin.x) in IntersectionSphereAABB()1292 distSq += (sphere->C.x - aabb->Pmin.x) * (sphere->C.x - aabb->Pmin.x); in IntersectionSphereAABB()1293 else if (sphere->C.x > aabb->Pmax.x) in IntersectionSphereAABB()1294 distSq += (sphere->C.x - aabb->Pmax.x) * (sphere->C.x - aabb->Pmax.x); in IntersectionSphereAABB()1296 if (sphere->C.y < aabb->Pmin.y) in IntersectionSphereAABB()1297 distSq += (sphere->C.y - aabb->Pmin.y) * (sphere->C.y - aabb->Pmin.y); in IntersectionSphereAABB()1298 else if (sphere->C.y > aabb->Pmax.y) in IntersectionSphereAABB()1299 distSq += (sphere->C.y - aabb->Pmax.y) * (sphere->C.y - aabb->Pmax.y); in IntersectionSphereAABB()1301 if (sphere->C.z < aabb->Pmin.z) in IntersectionSphereAABB()[all …]
488 bool IntersectionSphereAABB(const SPHERE* sphere, const AABB* aabb);