Returns an AlignedBox that is the intersection of \a b and \c *this * \note If the boxes don't intersect, the resulting box is empty. * \sa intersects(), clamp, contains() */
| 266 | * \note If the boxes don't intersect, the resulting box is empty. |
| 267 | * \sa intersects(), clamp, contains() */ |
| 268 | EIGEN_DEVICE_FUNC inline AlignedBox intersection(const AlignedBox& b) const |
| 269 | {return AlignedBox(m_min.cwiseMax(b.m_min), m_max.cwiseMin(b.m_max)); } |
| 270 | |
| 271 | /** Returns an AlignedBox that is the union of \a b and \c *this. |
| 272 | * \note Merging with an empty box may result in a box bigger than \c *this. |