Lines Matching refs:t_

241     f32 t_ = VEC3Dot(&L->d, VEC3Sub(&LP, P, &L->P));  in DistSqPoint3ToLine3()  local
244 VEC3Add(&PP, &L->P, VEC3Scale(&PP, &L->d, t_)); in DistSqPoint3ToLine3()
251 *t = t_; in DistSqPoint3ToLine3()
260 f32 t_; in DistSqPoint3ToRay3() local
262 distSq = DistSqPoint3ToLine3(P, (const LINE3*)R, &t_); in DistSqPoint3ToRay3()
264 if (t_ < 0) in DistSqPoint3ToRay3()
266 t_ = 0; in DistSqPoint3ToRay3()
275 *t = t_; in DistSqPoint3ToRay3()
283 f32 t_; in DistSqPoint3ToSegment3() local
288 distSq = DistSqPoint3ToLine3(P, &L, &t_); in DistSqPoint3ToSegment3()
290 if (t_ < 0.f) in DistSqPoint3ToSegment3()
299 else if (t_ > P0P1) in DistSqPoint3ToSegment3()
311 *t = t_ / P0P1; in DistSqPoint3ToSegment3()
516 f32 s_, t_; in DistSqLine3ToLine3() local
519 t_ = (e - b * d) * invDet; in DistSqLine3ToLine3()
524 *t = t_; in DistSqLine3ToLine3()
529 VEC3Scale(&tmp1, &L1->d, t_)); in DistSqLine3ToLine3()
655 f32 t_ = tNum / tDenom; in DistSqLine3ToRay3() local
660 *t = t_; in DistSqLine3ToRay3()
667 VEC3Sub(&v, &v, VEC3Scale(&tmp, &R->d, t_)); in DistSqLine3ToRay3()
723 f32 t_ = tNum / tDenom; in DistSqLine3ToSegment3() local
728 *t = t_; in DistSqLine3ToSegment3()
734 VEC3Sub(&v, &v, VEC3Scale(&tmp, &segDir, t_)); in DistSqLine3ToSegment3()
797 f32 t_ = tNum / tDenom; in DistSqRay3ToRay3() local
802 *t = t_; in DistSqRay3ToRay3()
809 VEC3Sub(&v, &v, VEC3Scale(&tmp, &R1->d, t_)); in DistSqRay3ToRay3()
889 f32 t_ = tNum / tDenom; in DistSqRay3ToSegment3() local
894 *t = t_; in DistSqRay3ToSegment3()
901 VEC3Sub(&v, &v, VEC3Scale(&tmp, &segDir, t_)); in DistSqRay3ToSegment3()
930 f32 t_ = -(VEC3Dot(&J->N, &L->P) + J->d) / denom; in IntersectionLine3Plane() local
936 VEC3Add(I, &L->P, VEC3Scale(&tmp, &L->d, t_)); in IntersectionLine3Plane()
940 *t = t_; in IntersectionLine3Plane()
951 f32 t_; in IntersectionRay3Plane() local
954 result = IntersectionLine3Plane((const LINE3*)R, J, &t_, (I != NULL ? &I_ : NULL)); in IntersectionRay3Plane()
959 if (t_ >= 0) in IntersectionRay3Plane()
962 *t = t_; in IntersectionRay3Plane()
982 f32 t_; in IntersectionSegment3Plane() local
990 result = IntersectionLine3Plane(&L, J, &t_, (I != NULL ? &I_ : NULL)); in IntersectionSegment3Plane()
995 if (t_ >= 0 && t_ <= P0P1) in IntersectionSegment3Plane()
998 *t = t_ / P0P1; in IntersectionSegment3Plane()