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