Expands the box so that it contains \a point.
| 58 | |
| 59 | //! Expands the box so that it contains \a point. |
| 60 | void include( const vec3 &point ) |
| 61 | { |
| 62 | vec3 min = glm::min( getMin(), point ); |
| 63 | vec3 max = glm::max( getMax(), point ); |
| 64 | set( min, max ); |
| 65 | } |
| 66 | |
| 67 | //! Expands the box so that it contains \a box. |
| 68 | void include( const AxisAlignedBox &box ) |