src/Geometry/Box1dInline.hh
//------------------------------------------------------------------------------
// Test if the given point is in the box.
//------------------------------------------------------------------------------
Test if the given point is in the box.
Test if the given point is in the box .
inline
bool
Box1d::
contains(const Box1d::Vector& point,
         const bool countBoundary,
         const double ) const {
  if (countBoundary) {
    return std::abs(point.x() - mCenter.x()) <= mExtent;
  } else {
    return std::abs(point.x() - mCenter.x()) <  mExtent;
  }
}
inline bool Box1d :: contains ( const Box1d :: Vector & point , const bool countBoundary , const double ) const { if ( countBoundary ) { return std :: abs ( point . x ( ) - mCenter . x ( ) ) <= mExtent ; } else { return std :: abs ( point . x ( ) - mCenter . x ( ) ) < mExtent ; } }
Test if the given point is in the box.
Test if the given point is in the box .
/*tol*/