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

Function iSphereIsectSphere

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

Source from the content-addressed store, hash-verified

91}
92
93void iSphereIsectSphere(const xSphere* s, const xSphere* p, xIsect* isx)
94{
95 xVec3Sub(&isx->norm, &p->center, &s->center);
96
97 isx->dist = xVec3Length(&isx->norm);
98 isx->penned = isx->dist - p->r - s->r;
99 isx->contained = isx->dist - s->r;
100}
101
102void iSphereInitBoundVec(xSphere* s, const xVec3* v)
103{

Callers 1

xSphereHitsSphereFunction · 0.85

Calls 2

xVec3SubFunction · 0.85
xVec3LengthFunction · 0.85

Tested by

no test coverage detected