Lines Matching refs:b
491 f32 b, d, e, f, det; in DistSqLine3ToLine3() local
495 b = VEC3Dot(&L0->d, &L1->d); in DistSqLine3ToLine3()
500 det = 1.f - b * b; // det = a * c - b * b; in DistSqLine3ToLine3()
518 s_ = (b * e - d) * invDet; in DistSqLine3ToLine3()
519 t_ = (e - b * d) * invDet; in DistSqLine3ToLine3()
543 f32 b = VEC3Dot(&u, &v); in DistSqSegment3ToSegment3() local
547 f32 D = a*c - b*b; // always >= 0 in DistSqSegment3ToSegment3()
559 sN = (b*e - c*d); in DistSqSegment3ToSegment3()
560 tN = (a*e - b*d); in DistSqSegment3ToSegment3()
569 tN = e + b; in DistSqSegment3ToSegment3()
590 if ((-d + b) < 0.0f) in DistSqSegment3ToSegment3()
592 else if ((-d + b) > a) in DistSqSegment3ToSegment3()
595 sN = (-d + b); in DistSqSegment3ToSegment3()
619 f32 b, d, e, det; in DistSqLine3ToRay3() local
624 b = VEC3Dot(&L->d, &R->d); in DistSqLine3ToRay3()
628 det = 1.f - b * b; // det = a * c - b * b; in DistSqLine3ToRay3()
640 sNum = b * e - d; in DistSqLine3ToRay3()
641 tNum = e - b * d; in DistSqLine3ToRay3()
679 f32 b, c, d, e, det; in DistSqLine3ToSegment3() local
684 b = VEC3Dot(&L0->d, &segDir); in DistSqLine3ToSegment3()
688 det = c - b * b; // det = a * c - b * b; in DistSqLine3ToSegment3()
701 sNum = b * e - c * d; in DistSqLine3ToSegment3()
702 tNum = e - b * d; in DistSqLine3ToSegment3()
718 sNum = -d + b; in DistSqLine3ToSegment3()
744 f32 b, d, e, det; in DistSqRay3ToRay3() local
749 b = VEC3Dot(&R0->d, &R1->d); in DistSqRay3ToRay3()
753 det = 1.f - b * b; // det = a * c - b * b; in DistSqRay3ToRay3()
766 sNum = b * e - d; in DistSqRay3ToRay3()
767 tNum = e - b * d; in DistSqRay3ToRay3()
819 f32 b, c, d, e, det; in DistSqRay3ToSegment3() local
825 b = VEC3Dot(&R0->d, &segDir); in DistSqRay3ToSegment3()
829 det = c - b * b; // det = a * c - b * b; in DistSqRay3ToSegment3()
842 sNum = b * e - c * d; in DistSqRay3ToSegment3()
843 tNum = e - b * d; in DistSqRay3ToSegment3()
876 if ((-d + b) < 0.f) in DistSqRay3ToSegment3()
883 sNum = -d + b; in DistSqRay3ToSegment3()
1018 f32 b, c, discrm; in IntersectionLine3Sphere() local
1022 b = 2.f * VEC3Dot(&L->d, &PmC); in IntersectionLine3Sphere()
1024 discrm = b * b - 4.f * c /* * a*/; in IntersectionLine3Sphere()
1032 *t0 = (-b - sq) * 0.5f/* inv(2 * a) */; in IntersectionLine3Sphere()
1037 *t1 = (-b + sq) * 0.5f/* inv(2 * a) */; in IntersectionLine3Sphere()
1046 *t0 = -0.5f * b; in IntersectionLine3Sphere()
1274 IntersectionAABB(const AABB* a, const AABB* b) in IntersectionAABB() argument
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()