! intersects two boxes */
| 58 | |
| 59 | /*! intersects two boxes */ |
| 60 | __forceinline static const BBox intersect (const BBox& a, const BBox& b) { |
| 61 | return BBox(max(a.lower, b.lower), min(a.upper, b.upper)); |
| 62 | } |
| 63 | |
| 64 | /*! enlarge box by some scaling factor */ |
| 65 | __forceinline BBox enlarge_by(const float a) const { |