Lines Matching refs:C

151     VEC3Lerp(&C, &tmp.Pmin, &tmp.Pmax, 0.5f);  in Set()
153 f32 maxDistance = VEC3SquareDist(&C, &arrayPoint[0]); in Set()
156 f32 dist = VEC3SquareDist(&C, &arrayPoint[i]); in Set()
337 f32 distance = J->Test(S->C); in DistSqSphereToPlane()
1020 VEC3Sub(&PmC, &L->P, &sphere->C); in IntersectionLine3Sphere()
1118 VEC3Sub(&w, &sphere->C, &R->P); in IntersectionRay3Sphere()
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()
1316 VEC3Sub(&centerDiff, &s0->C, &s1->C); in IntersectionSphere()
1328 VEC3 C; in IntersectionPlaneAABB() local
1330 VEC3Lerp(&C, &B->Pmin, &B->Pmax, .5f); in IntersectionPlaneAABB()
1331 VEC3Sub(&E, &B->Pmax, &C); // ここでEの要素は全て正である。 in IntersectionPlaneAABB()
1340 f32 s = VEC3Dot(&J->N, &C) + J->d; in IntersectionPlaneAABB()
1359 IntersectionRay3Capsule(const RAY3* R, const CAPSULE* C) in IntersectionRay3Capsule() argument
1361 if (DistSqRay3ToSegment3(R, &C->S, NULL, NULL) <= C->r * C->r) in IntersectionRay3Capsule()
1368 IntersectionLine3Capsule(const LINE3* L, const CAPSULE* C) in IntersectionLine3Capsule() argument
1370 if (DistSqLine3ToSegment3(L, &C->S, NULL, NULL) <= C->r * C->r) in IntersectionLine3Capsule()
1377 IntersectionPlaneCapsule(const PLANE* J, const CAPSULE* C) in IntersectionPlaneCapsule() argument
1379 f32 s0 = J->Test(C->S.P0); in IntersectionPlaneCapsule()
1380 f32 s1 = J->Test(C->S.P1); in IntersectionPlaneCapsule()
1383 FAbs(s0) <= C->r || in IntersectionPlaneCapsule()
1384 FAbs(s1) <= C->r) in IntersectionPlaneCapsule()
1399 viewPos.z = cam.f._20 * S->C.x + in IntersectSphere()
1400 cam.f._21 * S->C.y + in IntersectSphere()
1401 cam.f._22 * S->C.z + in IntersectSphere()
1413 viewPos.x = cam.f._00 * S->C.x + in IntersectSphere()
1414 cam.f._01 * S->C.y + in IntersectSphere()
1415 cam.f._02 * S->C.z + in IntersectSphere()
1433 viewPos.y = cam.f._10 * S->C.x + in IntersectSphere()
1434 cam.f._11 * S->C.y + in IntersectSphere()
1435 cam.f._12 * S->C.z + in IntersectSphere()
1547 VEC3Sub(&diff, &s1->C, &s0->C); in MergeSphere()
1565 VEC3Add(&s2->C, &s0->C, VEC3Scale(&diff, &diff, ((newRadius - s0->r)/dist))); in MergeSphere()
1569 s2->C = s0->C; in MergeSphere()