packages/MC/geometry/Bounding_Box.i.hh
//---------------------------------------------------------------------------//
/*!
 * \brief Return whether a point is inside this box.
 */
\brief Return whether a point is inside this box.
\ brief Return whether a point is inside this box .
bool Bounding_Box::is_point_inside(const Space_Vector& p) const
{
    using def::X; using def::Y; using def::Z;
    return (   d_lower[X] <= p[X]
            && d_upper[X] >= p[X]
            && d_lower[Y] <= p[Y]
            && d_upper[Y] >= p[Y]
            && d_lower[Z] <= p[Z]
            && d_upper[Z] >= p[Z]
           );
}
bool Bounding_Box :: is_point_inside ( const Space_Vector & p ) const { using def :: X ; using def :: Y ; using def :: Z ; return ( d_lower [ X ] <= p [ X ] && d_upper [ X ] >= p [ X ] && d_lower [ Y ] <= p [ Y ] && d_upper [ Y ] >= p [ Y ] && d_lower [ Z ] <= p [ Z ] && d_upper [ Z ] >= p [ Z ] ) ; }
\brief Return whether a point is inside this box.
\ brief Return whether a point is inside this box .