| 44 | inline bool Larger(const Bounds3& bb, float t) { Vec3f d = bb.mMax - bb.mMin; return d.x > t || d.y > t || d.z > t; } |
| 45 | |
| 46 | inline bool Intersects(const Bounds2& a, const Bounds2& b) |
| 47 | { |
| 48 | return a.mMax.x >= b.mMin.x && a.mMin.x <= b.mMax.x |
| 49 | && a.mMax.y >= b.mMin.y && a.mMin.y <= b.mMax.y; |
| 50 | } |
| 51 | inline bool Intersects(const Bounds3& a, const Bounds3& b) |
| 52 | { |
| 53 | return a.mMax.x >= b.mMin.x && a.mMin.x <= b.mMax.x |
no outgoing calls
no test coverage detected