\returns true if the box \a b is intersecting the box \c *this. * \sa intersection, clamp */
| 238 | /** \returns true if the box \a b is intersecting the box \c *this. |
| 239 | * \sa intersection, clamp */ |
| 240 | EIGEN_DEVICE_FUNC inline bool intersects(const AlignedBox& b) const { |
| 241 | return (m_min.array() <= (b.max)().array()).all() && ((b.min)().array() <= m_max.array()).all(); |
| 242 | } |
| 243 | |
| 244 | /** Extends \c *this such that it contains the point \a p and returns a reference to \c *this. |
| 245 | * \sa extend(const AlignedBox&) */ |
no test coverage detected