Lines Matching refs:distSq
237 f32 distSq; in DistSqPoint3ToLine3() local
248 distSq = VEC3SquareLen(&PP_P); in DistSqPoint3ToLine3()
252 return distSq; in DistSqPoint3ToLine3()
259 f32 distSq; in DistSqPoint3ToRay3() local
262 distSq = DistSqPoint3ToLine3(P, (const LINE3*)R, &t_); in DistSqPoint3ToRay3()
270 distSq = VEC3SquareLen(&vec); in DistSqPoint3ToRay3()
276 return distSq; in DistSqPoint3ToRay3()
282 f32 distSq; in DistSqPoint3ToSegment3() local
288 distSq = DistSqPoint3ToLine3(P, &L, &t_); in DistSqPoint3ToSegment3()
297 distSq = VEC3SquareLen(&vec); in DistSqPoint3ToSegment3()
306 distSq = VEC3SquareLen(&vec); in DistSqPoint3ToSegment3()
314 return distSq; in DistSqPoint3ToSegment3()
1289 f32 distSq = 0.f; in IntersectionSphereAABB() local
1292 distSq += (sphere->C.x - aabb->Pmin.x) * (sphere->C.x - aabb->Pmin.x); in IntersectionSphereAABB()
1294 distSq += (sphere->C.x - aabb->Pmax.x) * (sphere->C.x - aabb->Pmax.x); in IntersectionSphereAABB()
1297 distSq += (sphere->C.y - aabb->Pmin.y) * (sphere->C.y - aabb->Pmin.y); in IntersectionSphereAABB()
1299 distSq += (sphere->C.y - aabb->Pmax.y) * (sphere->C.y - aabb->Pmax.y); in IntersectionSphereAABB()
1302 distSq += (sphere->C.z - aabb->Pmin.z) * (sphere->C.z - aabb->Pmin.z); in IntersectionSphereAABB()
1304 distSq += (sphere->C.z - aabb->Pmax.z) * (sphere->C.z - aabb->Pmax.z); in IntersectionSphereAABB()
1306 if (distSq <= sphere->r * sphere->r) in IntersectionSphereAABB()