MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / intersection

Method intersection

include/Eigen/Eigen/src/Geometry/AlignedBox.h:268–269  ·  view source on GitHub ↗

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() */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

AlignedBoxClass · 0.70

Tested by

no test coverage detected