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