R_CullBox Returns true if the box is completely outside the frustum
(float[] mins, float[] maxs)
| 237 | * Returns true if the box is completely outside the frustum |
| 238 | */ |
| 239 | final boolean R_CullBox(float[] mins, float[] maxs) { |
| 240 | assert(mins.length == 3 && maxs.length == 3) : "vec3_t bug"; |
| 241 | |
| 242 | if (r_nocull.value != 0) |
| 243 | return false; |
| 244 | |
| 245 | for (int i = 0; i < 4; i++) { |
| 246 | if (Math3D.BoxOnPlaneSide(mins, maxs, frustum[i]) == 2) |
| 247 | return true; |
| 248 | } |
| 249 | return false; |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * R_RotateForEntity |
no test coverage detected