| 63 | } |
| 64 | |
| 65 | void BBox::BoundingSphere(Point *c, float *rad) const { |
| 66 | *c = .5f * (pMin + pMax); |
| 67 | *rad = Inside(*c) ? Distance(*c, pMax) : 0.f; |
| 68 | } |
| 69 | |
| 70 | BSphere BBox::BoundingSphere() const { |
| 71 | const Point c = .5f * (pMin + pMax); |
no test coverage detected