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

Function iSphereIsectVec

src/SB/Core/gc/iMath3.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void iSphereIsectVec(const xSphere* s, const xVec3* v, xIsect* isx)
14{
15 xVec3Sub(&isx->norm, v, &s->center);
16
17 isx->dist = xVec3Length(&isx->norm);
18 isx->penned = isx->dist - s->r;
19}
20
21void iSphereIsectRay(const xSphere* s, const xRay3* r, xIsect* isx)
22{

Callers 3

zEntTriggerUpdateFunction · 0.85
iSphereBoundVecFunction · 0.85
xVecHitsBoundFunction · 0.85

Calls 2

xVec3SubFunction · 0.85
xVec3LengthFunction · 0.85

Tested by

no test coverage detected