Lines Matching refs:Pmax

47     if (Pmin.x > Pmax.x)  in Normalize()
48 ::std::swap(Pmin.x, Pmax.x); in Normalize()
49 if (Pmin.y > Pmax.y) in Normalize()
50 ::std::swap(Pmin.y, Pmax.y); in Normalize()
51 if (Pmin.z > Pmax.z) in Normalize()
52 ::std::swap(Pmin.z, Pmax.z); in Normalize()
59 Pmax = arrayPoint[0]; in Set()
65 else if (arrayPoint[i].x > Pmax.x) in Set()
66 Pmax.x = arrayPoint[i].x; in Set()
70 else if (arrayPoint[i].y > Pmax.y) in Set()
71 Pmax.y = arrayPoint[i].y; in Set()
75 else if (arrayPoint[i].z > Pmax.z) in Set()
76 Pmax.z = arrayPoint[i].z; in Set()
91 x1 = M->f._00 * box->Pmax.x + M->f._03; in Set()
93 a1 = M->f._01 * box->Pmax.y; in Set()
95 b1 = M->f._02 * box->Pmax.z; in Set()
106 y1 = M->f._10 * box->Pmax.x + M->f._13; in Set()
108 a1 = M->f._11 * box->Pmax.y; in Set()
110 b1 = M->f._12 * box->Pmax.z; in Set()
121 z1 = M->f._20 * box->Pmax.x + M->f._23; in Set()
123 a1 = M->f._21 * box->Pmax.y; in Set()
125 b1 = M->f._22 * box->Pmax.z; in Set()
138 Pmax.x = x1; in Set()
139 Pmax.y = y1; in Set()
140 Pmax.z = z1; in Set()
151 VEC3Lerp(&C, &tmp.Pmin, &tmp.Pmax, 0.5f); in Set()
442 else if (v > B->Pmax.x) in DistSqPoint3ToAABB()
444 sqDist += (B->Pmax.x - v) * (B->Pmax.x - v); in DistSqPoint3ToAABB()
445 vv = B->Pmax.x; in DistSqPoint3ToAABB()
456 else if (v > B->Pmax.y) in DistSqPoint3ToAABB()
458 sqDist += (B->Pmax.y - v) * (B->Pmax.y - v); in DistSqPoint3ToAABB()
459 vv = B->Pmax.y; in DistSqPoint3ToAABB()
470 else if (v > B->Pmax.z) in DistSqPoint3ToAABB()
472 sqDist += (B->Pmax.z - v) * (B->Pmax.z - v); in DistSqPoint3ToAABB()
473 vv = B->Pmax.z; in DistSqPoint3ToAABB()
1249 result = IntersectionRay3AABB_(box->Pmin.x, box->Pmax.x, R->P.x, R->d.x, tNear, tFar); in IntersectionRay3AABB()
1253 result = IntersectionRay3AABB_(box->Pmin.y, box->Pmax.y, R->P.y, R->d.y, tNear, tFar); in IntersectionRay3AABB()
1257 result = IntersectionRay3AABB_(box->Pmin.z, box->Pmax.z, R->P.z, R->d.z, tNear, tFar); in IntersectionRay3AABB()
1276 if (a->Pmin.x > b->Pmax.x || b->Pmin.x > a->Pmax.x || in IntersectionAABB()
1277 a->Pmin.y > b->Pmax.y || b->Pmin.y > a->Pmax.y || in IntersectionAABB()
1278 a->Pmin.z > b->Pmax.z || b->Pmin.z > a->Pmax.z) in IntersectionAABB()
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()
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()
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()
1330 VEC3Lerp(&C, &B->Pmin, &B->Pmax, .5f); in IntersectionPlaneAABB()
1331 VEC3Sub(&E, &B->Pmax, &C); // ここでEの要素は全て正である。 in IntersectionPlaneAABB()
1471 p.x = (planes[i].N.x >= 0) ? B->Pmin.x : B->Pmax.x; in IntersectAABB()
1472 p.y = (planes[i].N.y >= 0) ? B->Pmin.y : B->Pmax.y; in IntersectAABB()
1473 p.z = (planes[i].N.z >= 0) ? B->Pmin.z : B->Pmax.z; in IntersectAABB()
1498 p.x = B->Pmin.x; n.x = B->Pmax.x; in IntersectAABB_Ex()
1502 p.x = B->Pmax.x; n.x = B->Pmin.x; in IntersectAABB_Ex()
1507 p.y = B->Pmin.y; n.y = B->Pmax.y; in IntersectAABB_Ex()
1511 p.y = B->Pmax.y; n.y = B->Pmin.y; in IntersectAABB_Ex()
1516 p.z = B->Pmin.z; n.z = B->Pmax.z; in IntersectAABB_Ex()
1520 p.z = B->Pmax.z; n.z = B->Pmin.z; in IntersectAABB_Ex()
1584 a2->Pmax.x = ::std::max(a0->Pmax.x, a1->Pmax.x); in MergeAABB()
1585 a2->Pmax.y = ::std::max(a0->Pmax.y, a1->Pmax.y); in MergeAABB()
1586 a2->Pmax.z = ::std::max(a0->Pmax.z, a1->Pmax.z); in MergeAABB()