| 468 | } |
| 469 | |
| 470 | static 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 | |
| 480 | void iBoxIsectRay(const xBox* b, const xRay3* r, xIsect* isx) |
| 481 | { |
no test coverage detected