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

Function ClipBox

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

Source from the content-addressed store, hash-verified

468}
469
470static U32 ClipBox(const xVec3* r3, const xVec3* r4, const xVec3* r5, F32* t_in, F32* t_out)
471{
472 return (ClipPlane(r5->x, -r4->x - r3->x, t_in, t_out) &&
473 ClipPlane(-r5->x, r4->x - r3->x, t_in, t_out) &&
474 ClipPlane(r5->y, -r4->y - r3->y, t_in, t_out) &&
475 ClipPlane(-r5->y, r4->y - r3->y, t_in, t_out) &&
476 ClipPlane(r5->z, -r4->z - r3->z, t_in, t_out) &&
477 ClipPlane(-r5->z, r4->z - r3->z, t_in, t_out));
478}
479
480void iBoxIsectRay(const xBox* b, const xRay3* r, xIsect* isx)
481{

Callers 1

iBoxIsectRayFunction · 0.85

Calls 1

ClipPlaneFunction · 0.85

Tested by

no test coverage detected