Go to the documentation of this file.
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_);
point midpoint() const
The midpoint of the bounding box.
scalar mag() const
The magnitude of the bounding box span.
point min_
Minimum and maximum describing the bounding box.
const point & max() const
Maximum describing the bounding box.
@ nComponents
Number of components in this vector space.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
dimensioned< scalar > mag(const dimensioned< Type > &)
scalar volume() const
The volume of the bound box.
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
vector span() const
The bounding box span (from minimum to maximum)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
scalar maxDim() const
Largest length/height/width dimension.
bool containsInside(const point &) const
Contains point? (inside only)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
scalar minDim() const
Smallest length/height/width dimension.
const point & min() const
Minimum describing the bounding box.
Cmpt cmptProduct(const VectorSpace< Form, Cmpt, nCmpt > &vs)
bool operator!=(const particle &, const particle &)
boundBox()
Construct null, setting points to zero.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
bool contains(const point &) const
Contains point? (inside or on edge)
scalar avgDim() const
Average length/height/width dimension.
Istream & operator>>(Istream &, edgeMesh &)
A bounding box defined in terms of the points at its extremities.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...