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

Function xPointInBox

src/SB/Core/x/xMath3.cpp:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67S32 xPointInBox(const xBox* b, const xVec3* p)
68{
69 S32 ret = 0;
70 if ((p->x >= b->lower.x) && (p->x <= b->upper.x))
71 {
72 if ((p->y >= b->lower.y) && (p->y <= b->upper.y))
73 {
74 if ((p->z >= b->lower.z) && (p->z <= b->upper.z))
75 {
76 ret = 1;
77 }
78 }
79 }
80 return (char)ret;
81}
82
83void xBoxInitBoundOBB(xBox* o, const xBox* b, const xMat4x3* m)
84{

Callers 2

zEntButton_HoldFunction · 0.85
zEntTeleportBox_UpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected