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

Function iBoxIsectVec

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

Source from the content-addressed store, hash-verified

421}
422
423void iBoxIsectVec(const xBox* b, const xVec3* v, xIsect* isx)
424{
425 if (v->x >= b->lower.x && v->x <= b->upper.x && v->y >= b->lower.y && v->y <= b->upper.y &&
426 v->z >= b->lower.z && v->z <= b->upper.z)
427 {
428 isx->penned = -1.0f;
429 }
430 else
431 {
432 isx->penned = 1.0f;
433 }
434}
435
436static U32 ClipPlane(F32 denom, F32 numer, F32* t_in, F32* t_out)
437{

Callers 3

zEntTriggerUpdateFunction · 0.85
iBoxIsectSphereFunction · 0.85
xVecHitsBoundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected