| 272 | } |
| 273 | |
| 274 | inline void Box3F::setCenter(const Point3F& center) |
| 275 | { |
| 276 | F32 halflenx = len_x() * 0.5f; |
| 277 | F32 halfleny = len_y() * 0.5f; |
| 278 | F32 halflenz = len_z() * 0.5f; |
| 279 | |
| 280 | minExtents.set(center.x-halflenx, center.y-halfleny, center.z-halflenz); |
| 281 | maxExtents.set(center.x+halflenx, center.y+halfleny, center.z+halflenz); |
| 282 | } |
| 283 | |
| 284 | inline bool Box3F::isContained(const Point3F& in_rContained) const |
| 285 | { |
no test coverage detected