| 73 | } |
| 74 | |
| 75 | void WindingBounds (winding_t *w, vec3_t mins, vec3_t maxs) |
| 76 | { |
| 77 | vec_t v; |
| 78 | int i,j; |
| 79 | |
| 80 | mins[0] = mins[1] = mins[2] = WORLD_SIZE; // 99999; // WORLD_SIZE instead of MAX_WORLD_COORD so that... |
| 81 | maxs[0] = maxs[1] = maxs[2] = -WORLD_SIZE; //-99999; // ... it's guaranteed to be outide of legal |
| 82 | |
| 83 | for (i=0 ; i<w->numpoints ; i++) |
| 84 | { |
| 85 | for (j=0 ; j<3 ; j++) |
| 86 | { |
| 87 | v = w->p[i][j]; |
| 88 | if (v < mins[j]) |
| 89 | mins[j] = v; |
| 90 | if (v > maxs[j]) |
| 91 | maxs[j] = v; |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | /* |
| 97 | ================= |
no outgoing calls
no test coverage detected