packages/MC/geometry/Bounding_Box.i.hh
//---------------------------------------------------------------------------//
/*!
 * \brief Return whether bounding box A encloses bounding box B
 */
\brief Return whether bounding box A encloses bounding box B
\ brief Return whether bounding box A encloses bounding box B
bool Bounding_Box::encloses(const Bounding_Box& b) const
{
    using def::X; using def::Y; using def::Z;
    return (   d_lower[X] <= b.d_lower[X]
            && d_upper[X] >= b.d_upper[X]
            && d_lower[Y] <= b.d_lower[Y]
            && d_upper[Y] >= b.d_upper[Y]
            && d_lower[Z] <= b.d_lower[Z]
            && d_upper[Z] >= b.d_upper[Z]
           );
}
bool Bounding_Box :: encloses ( const Bounding_Box & b ) const { using def :: X ; using def :: Y ; using def :: Z ; return ( d_lower [ X ] <= b . d_lower [ X ] && d_upper [ X ] >= b . d_upper [ X ] && d_lower [ Y ] <= b . d_lower [ Y ] && d_upper [ Y ] >= b . d_upper [ Y ] && d_lower [ Z ] <= b . d_lower [ Z ] && d_upper [ Z ] >= b . d_upper [ Z ] ) ; }
\brief Return whether bounding box A encloses bounding box B
\ brief Return whether bounding box A encloses bounding box B