Lines Matching refs:L

235 DistSqPoint3ToLine3(const VEC3* P, const LINE3* L, f32* t)  in DistSqPoint3ToLine3()  argument
241 f32 t_ = VEC3Dot(&L->d, VEC3Sub(&LP, P, &L->P)); in DistSqPoint3ToLine3()
244 VEC3Add(&PP, &L->P, VEC3Scale(&PP, &L->d, t_)); in DistSqPoint3ToLine3()
284 LINE3 L; in DistSqPoint3ToSegment3() local
285 L.Set(S); in DistSqPoint3ToSegment3()
288 distSq = DistSqPoint3ToLine3(P, &L, &t_); in DistSqPoint3ToSegment3()
616 DistSqLine3ToRay3(const LINE3* L, const RAY3* R, f32* s, f32* t) in DistSqLine3ToRay3() argument
622 VEC3Sub(&u, &L->P, &R->P); in DistSqLine3ToRay3()
624 b = VEC3Dot(&L->d, &R->d); in DistSqLine3ToRay3()
626 d = VEC3Dot(&L->d, &u); in DistSqLine3ToRay3()
665 VEC3Add(&v, &L->P, VEC3Scale(&tmp, &L->d, s_)); in DistSqLine3ToRay3()
914 IntersectionLine3Plane(const LINE3* L, const PLANE* J, f32* t, VEC3* I) in IntersectionLine3Plane() argument
917 denom = VEC3Dot(&L->d, &J->N); in IntersectionLine3Plane()
921 if (FAbs(VEC3Dot(&J->N, &L->P) + J->d) < internal::epsilon) in IntersectionLine3Plane()
930 f32 t_ = -(VEC3Dot(&J->N, &L->P) + J->d) / denom; in IntersectionLine3Plane()
936 VEC3Add(I, &L->P, VEC3Scale(&tmp, &L->d, t_)); in IntersectionLine3Plane()
987 LINE3 L(S->P0, dir); in IntersectionSegment3Plane() local
990 result = IntersectionLine3Plane(&L, J, &t_, (I != NULL ? &I_ : NULL)); in IntersectionSegment3Plane()
1016 IntersectionLine3Sphere(const LINE3* L, const SPHERE* sphere, f32* t0, f32* t1) in IntersectionLine3Sphere() argument
1020 VEC3Sub(&PmC, &L->P, &sphere->C); in IntersectionLine3Sphere()
1022 b = 2.f * VEC3Dot(&L->d, &PmC); in IntersectionLine3Sphere()
1141 LINE3 L(S->P0, dir); in IntersectionSegment3Sphere() local
1144 result = IntersectionLine3Sphere(&L, sphere, &t0_, &t1_); in IntersectionSegment3Sphere()
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()