packages/MC/mc/Box_Shape.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Returns whether a point is on or inside this box.
 */
\brief Returns whether a point is on or inside this box.
\ brief Returns whether a point is on or inside this box .
bool Box_Shape::is_point_inside(const Space_Vector& x) const
{
    return (x[0] >= d_lox && x[0] <= d_lox + d_Dx) &&
           (x[1] >= d_loy && x[1] <= d_loy + d_Dy) &&
           (x[2] >= d_loz && x[2] <= d_loz + d_Dz);
}
bool Box_Shape :: is_point_inside ( const Space_Vector & x ) const { return ( x [ 0 ] >= d_lox && x [ 0 ] <= d_lox + d_Dx ) && ( x [ 1 ] >= d_loy && x [ 1 ] <= d_loy + d_Dy ) && ( x [ 2 ] >= d_loz && x [ 2 ] <= d_loz + d_Dz ) ; }
\brief Returns whether a point is on or inside this box.
\ brief Returns whether a point is on or inside this box .