MCPcopy Create free account
hub / github.com/Derious/cuMPC / intersects

Method intersects

dependence/eigen-3.4.0/Eigen/src/Geometry/AlignedBox.h:230–231  ·  view source on GitHub ↗

\returns true if the box \a b is intersecting the box \c *this. * \sa intersection, clamp */

Source from the content-addressed store, hash-verified

228 /** \returns true if the box \a b is intersecting the box \c *this.
229 * \sa intersection, clamp */
230 EIGEN_DEVICE_FUNC inline bool intersects(const AlignedBox& b) const
231 { return (m_min.array()<=(b.max)().array()).all() && ((b.min)().array()<=m_max.array()).all(); }
232
233 /** Extends \c *this such that it contains the point \a p and returns a reference to \c *this.
234 * \sa extend(const AlignedBox&) */

Callers 1

alignedboxFunction · 0.80

Calls 2

allMethod · 0.45
arrayMethod · 0.45

Tested by 1

alignedboxFunction · 0.64