Lines Matching refs:R

257 DistSqPoint3ToRay3(const VEC3* P, const RAY3* R, f32* t)  in DistSqPoint3ToRay3()  argument
262 distSq = DistSqPoint3ToLine3(P, (const LINE3*)R, &t_); in DistSqPoint3ToRay3()
269 VEC3Sub(&vec, P, &R->P); in DistSqPoint3ToRay3()
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()
627 e = VEC3Dot(&R->d, &u); in DistSqLine3ToRay3()
666 VEC3Sub(&v, &v, &R->P); in DistSqLine3ToRay3()
667 VEC3Sub(&v, &v, VEC3Scale(&tmp, &R->d, t_)); in DistSqLine3ToRay3()
949 IntersectionRay3Plane(const RAY3* R, const PLANE* J, f32* t, VEC3* I) in IntersectionRay3Plane() argument
954 result = IntersectionLine3Plane((const LINE3*)R, J, &t_, (I != NULL ? &I_ : NULL)); in IntersectionRay3Plane()
1059 IntersectionRay3Sphere(const RAY3* R, const SPHERE* sphere, f32* t0, f32* t1) in IntersectionRay3Sphere() argument
1063 result = IntersectionLine3Sphere((const LINE3*)R, sphere, &t0_, &t1_); in IntersectionRay3Sphere()
1115 IntersectionRay3Sphere(const RAY3* R, const SPHERE* sphere) in IntersectionRay3Sphere() argument
1118 VEC3Sub(&w, &sphere->C, &R->P); in IntersectionRay3Sphere()
1120 f32 proj = VEC3Dot(&w, &R->d); in IntersectionRay3Sphere()
1126 f32 vsq = VEC3SquareLen(&R->d); in IntersectionRay3Sphere()
1243 IntersectionRay3AABB(const RAY3* R, const AABB* box, f32* t) in IntersectionRay3AABB() argument
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()
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()