| 61 | } |
| 62 | |
| 63 | static Sphere obb_sphere(const OBB &obb) |
| 64 | { |
| 65 | const Vector3 scl = scale(obb.tm); |
| 66 | const Vector3 half = { |
| 67 | obb.half_extents.x * scl.x, |
| 68 | obb.half_extents.y * scl.y, |
| 69 | obb.half_extents.z * scl.z |
| 70 | }; |
| 71 | |
| 72 | Sphere s; |
| 73 | s.c = translation(obb.tm); |
| 74 | s.r = length(half); |
| 75 | return s; |
| 76 | } |
| 77 | |
| 78 | namespace culling_set |
| 79 | { |
no test coverage detected