| 91 | } |
| 92 | |
| 93 | void 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 | |
| 102 | void iSphereInitBoundVec(xSphere* s, const xVec3* v) |
| 103 | { |
no test coverage detected