Lines Matching refs:f32
78 LINE3(const f32* p, bool isNormalized = false)
85 operator f32*() { return &P.x; }
86 operator const f32*() const { return &P.x; }
111 RAY3(const f32* p, bool isNormalized = false)
118 operator f32*() { return &P.x; }
119 operator const f32*() const { return &P.x; }
142 SEGMENT3(const f32* p) : P0(p), P1(p + 3) {} in SEGMENT3()
145 operator f32*() { return &P0.x; }
146 operator const f32*() const { return &P0.x; }
175 SPHERE(const f32* p) : C(p), r(*(p + 3)) {} in SPHERE()
176 SPHERE(const VEC3& center, f32 radius) : C(center), r(radius) {} in SPHERE()
178 operator f32*() { return &C.x; }
179 operator const f32*() const { return &C.x; }
187 f32 r;
205 PLANE(const f32* p, bool isNormalized = false)
208 PLANE(f32 A, f32 B, f32 C, f32 D, bool isNormalized = false)
217 operator f32*() { return &N.x; }
218 operator const f32*() const { return &N.x; }
223 f32 Test(const VEC3& P) const in Test()
230 f32 r = FrSqrt(VEC3SquareLen(&N)); in Normalize()
238 f32 d;
253 CAPSULE(const f32* p) : S(p), r(*(p + 6)) {} in CAPSULE()
254 CAPSULE(const SEGMENT3& S_, f32 r_) : S(S_), r(r_) {} in CAPSULE()
255 CAPSULE(const VEC3& P0, const VEC3& P1, f32 r_) : S(P0, P1), r(r_) {} in CAPSULE()
257 operator f32*() { return &S.P0.x; }
258 operator const f32*() const { return &S.P0.x; }
263 f32 r;
279 AABB(const f32* p, bool isNormalized = false)
286 operator f32*() { return &Pmin.x; }
287 operator const f32*() const { return &Pmin.x; }
314 CYLINDER(const f32* p) in CYLINDER()
316 CYLINDER(f32 radius, f32 height) in CYLINDER()
319 f32 r;
320 f32 h;
336 CONE(const f32* p) in CONE()
338 CONE(f32 radius, f32 height) in CONE()
341 f32 r;
342 f32 h;
371 FRUSTUM(f32 fovyRad, f32 aspect, f32 n, f32 f, const MTX34& camera) in FRUSTUM()
387 FRUSTUM(f32 top, f32 bottom, f32 left, f32 right, f32 n, f32 f, const MTX34& camera) in FRUSTUM()
399 f32 znear;
400 f32 zfar;
417 void Set(f32 top, f32 bottom, f32 left, f32 right, f32 n, f32 f, const MTX34& camera);
428 void Set(f32 fovyRad, f32 aspect, f32 n, f32 f, const MTX34& camera) in Set()
430 f32 tanRad = TanRad(0.5f * fovyRad); in Set()
431 f32 ny = tanRad * n; in Set()
432 f32 nx = ny * aspect; in Set()
453 f32 DistSqPoint3ToLine3(const VEC3* P, const LINE3* L, f32* t);
454 f32 DistSqPoint3ToRay3(const VEC3* P, const RAY3* R, f32* t);
455 f32 DistSqPoint3ToSegment3(const VEC3* P, const SEGMENT3* S, f32* t);
456 f32 DistSqPoint3ToPlane(const VEC3* P, const PLANE* J, VEC3* Q);
457 f32 DistSqSphereToPlane(const SPHERE* S, const PLANE* J);
458 f32 DistSqPoint3ToPolyline3(const VEC3* P, const VEC3* vertices, unsigned int nVertices);
459 f32 DistSqPoint3ToAABB(const VEC3* P, const AABB* B, VEC3* q);
462 f32 DistSqLine3ToLine3(const LINE3* L0, const LINE3* L1, f32* s, f32* t);
463 f32 DistSqSegment3ToSegment3(const SEGMENT3* S0, const SEGMENT3* S1, f32* s, f32* t);
464 f32 DistSqLine3ToRay3(const LINE3* L, const RAY3* R, f32* s, f32* t);
465 f32 DistSqLine3ToSegment3(const LINE3* L0, const SEGMENT3* S, f32* s, f32* t);
466 f32 DistSqRay3ToRay3(const RAY3* R0, const RAY3* R1, f32* s, f32* t);
467 f32 DistSqRay3ToSegment3(const RAY3* R0, const SEGMENT3* S, f32* s, f32* t);
477 IntersectionResult IntersectionLine3Plane(const LINE3* L, const PLANE* J, f32* t, VEC3* I);
478 IntersectionResult IntersectionRay3Plane(const RAY3* R, const PLANE* J, f32* t, VEC3* I);
479 IntersectionResult IntersectionSegment3Plane(const SEGMENT3* S, const PLANE* J, f32* t, VEC3* I);
481 IntersectionResult IntersectionLine3Sphere(const LINE3* L, const SPHERE* sphere, f32* t0, f32* t1);
482 IntersectionResult IntersectionRay3Sphere(const RAY3* R, const SPHERE* sphere, f32* t0, f32* t1);
484 IntersectionResult IntersectionSegment3Sphere(const SEGMENT3* S, const SPHERE* sphere, f32* t0, f32…
486 bool IntersectionRay3AABB(const RAY3* R, const AABB* box, f32* t);