| 124 | } |
| 125 | |
| 126 | struct Sphere |
| 127 | { |
| 128 | ALIGNED_CLASS_(16); |
| 129 | public: |
| 130 | Sphere () : pos(zero), r(zero) {} |
| 131 | Sphere (const Vec3fa& pos, float r) : pos(pos), r(r) {} |
| 132 | __forceinline BBox3fa bounds() const { return BBox3fa(pos-Vec3fa(r),pos+Vec3fa(r)); } |
| 133 | public: |
| 134 | Vec3fa pos; |
| 135 | float r; |
| 136 | }; |
| 137 | |
| 138 | void BoundsFunc(const struct RTCBoundsFunctionArguments* const args) |
| 139 | { |
no outgoing calls
no test coverage detected