80 return 0.5 * (max_ + min_);
124 bb.max_.
x() >= min_.x() && bb.min_.
x() <= max_.x()
125 && bb.max_.
y() >= min_.y() && bb.min_.
y() <= max_.y()
126 && bb.max_.
z() >= min_.z() && bb.min_.
z() <= max_.z()
134 const scalar radiusSqr
143 scalar d0 = min_[dir] - centre[dir];
144 scalar d1 = max_[dir] - centre[dir];
146 if ((d0 > 0) != (d1 > 0))
160 if (distSqr > radiusSqr)
174 pt.
x() >= min_.x() && pt.
x() <= max_.x()
175 && pt.
y() >= min_.y() && pt.
y() <= max_.y()
176 && pt.
z() >= min_.z() && pt.
z() <= max_.z()
184 return contains(bb.
min()) && contains(bb.
max());
192 pt.
x() > min_.x() && pt.
x() < max_.x()
193 && pt.
y() > min_.y() && pt.
y() < max_.y()
194 && pt.
z() > min_.z() && pt.
z() < max_.z()
203 return (a.min_ ==
b.min_) && (a.max_ ==
b.max_);
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const direction nComponents
Number of components in this vector space.
A bounding box defined in terms of the points at its extremities.
const point & min() const
Minimum point defining the bounding box.
const point & max() const
Maximum point defining the bounding box.
scalar volume() const
The volume of the bound box.
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
bool contains(const point &) const
Contains point? (inside or on edge)
scalar minDim() const
Smallest length/height/width dimension.
scalar mag() const
The magnitude of the bounding box span.
scalar avgDim() const
Average length/height/width dimension.
boundBox()
Construct null, setting points to zero.
point midpoint() const
The midpoint of the bounding box.
vector span() const
The bounding box span (from minimum to maximum)
scalar maxDim() const
Largest length/height/width dimension.
bool containsInside(const point &) const
Contains point? (inside only)
bool operator!=(const particle &, const particle &)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Cmpt cmptProduct(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
Istream & operator>>(Istream &, directionInfo &)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)