Lines Matching refs:aabb
1287 IntersectionSphereAABB(const SPHERE* sphere, const AABB* aabb) in IntersectionSphereAABB() argument
1291 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()
1302 distSq += (sphere->C.z - aabb->Pmin.z) * (sphere->C.z - aabb->Pmin.z); in IntersectionSphereAABB()
1303 else if (sphere->C.z > aabb->Pmax.z) in IntersectionSphereAABB()
1304 distSq += (sphere->C.z - aabb->Pmax.z) * (sphere->C.z - aabb->Pmax.z); in IntersectionSphereAABB()