MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xQuickCullForRay

Function xQuickCullForRay

src/SB/Core/x/xCollide.cpp:2666–2668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2664 xVec3 d1 = v2 - v1;
2665 xVec3 d2 = v1 - center;
2666
2667 F32 r = radius + width;
2668 F32 f31 = d1.length2();
2669 F32 b = 2.0f * d1.dot(d2);
2670 F32 q = SQR(b) - 4.0f * f31 * (d2.length2() - SQR(r));
2671

Callers 3

xRayHitsSceneFunction · 0.70
xRayHitsSceneFlagsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected