| 11 | } |
| 12 | |
| 13 | void iSphereIsectVec(const xSphere* s, const xVec3* v, xIsect* isx) |
| 14 | { |
| 15 | xVec3Sub(&isx->norm, v, &s->center); |
| 16 | |
| 17 | isx->dist = xVec3Length(&isx->norm); |
| 18 | isx->penned = isx->dist - s->r; |
| 19 | } |
| 20 | |
| 21 | void iSphereIsectRay(const xSphere* s, const xRay3* r, xIsect* isx) |
| 22 | { |
no test coverage detected