35 min_(invertedBox.
min()),
36 max_(invertedBox.
max())
67 if (max_[dir] < min_[dir])
81 if (max_[dir] < min_[dir])
117 return 0.5 * (min_ + max_);
123 return this->centre();
129 return (max_ - min_);
135 return ::Foam::mag(max_ - min_);
169 const scalar
diff = (max_[dir] - min_[dir]);
186 min_ = invertedBox.min();
187 max_ = invertedBox.max();
225 bb.max_.
x() >= min_.x() && bb.min_.
x() <= max_.x()
226 && bb.max_.
y() >= min_.y() && bb.min_.
y() <= max_.y()
227 && bb.max_.
z() >= min_.z() && bb.min_.
z() <= max_.z()
235 const scalar radiusSqr
244 const scalar d0 = min_[dir] - centre[dir];
245 const scalar d1 = max_[dir] - centre[dir];
247 if ((d0 > 0) != (d1 > 0))
261 if (distSqr > radiusSqr)
275 min_.x() <= pt.
x() && pt.
x() <= max_.x()
276 && min_.y() <= pt.
y() && pt.
y() <= max_.y()
277 && min_.z() <= pt.
z() && pt.
z() <= max_.z()
284 return contains(bb.
min()) && contains(bb.
max());
292 min_.x() < pt.
x() && pt.
x() < max_.x()
293 && min_.y() < pt.
y() && pt.
y() < max_.y()
294 && min_.z() < pt.
z() && pt.
z() < max_.z()
void max(const dimensioned< Type > &dt)
Use the maximum of the field and specified value.
void min(const dimensioned< Type > &dt)
Use the minimum of the field and specified value.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
int overlaps
Flag to control which overlap calculations are performed.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
A bounding box defined in terms of min/max extrema points.
bool containsInside(const point &pt) const
Contains point? (inside only)
bool valid() const
Bounding box is non-inverted.
void operator+=(const boundBox &bb)
Extend box to include the second box, as per the add() method.
const point & min() const
Minimum describing the bounding box.
const point & max() const
Maximum describing the bounding box.
bool contains(const point &pt) const
Contains point? (inside or on edge)
scalar volume() const
The volume of the bound box.
bool empty() const
Bounding box is inverted, contains no points.
scalar minDim() const
Smallest length/height/width dimension.
label nDim() const
Count the number of positive, non-zero dimensions.
scalar mag() const
The magnitude of the bounding box span.
scalar avgDim() const
Average length/height/width dimension.
boundBox()
Construct without any points - an inverted bounding box.
void clear()
Clear bounding box and make it an inverted box.
point midpoint() const
The midpoint (centre) of the bounding box. Identical to centre()
vector span() const
The bounding box span (from minimum to maximum)
point centre() const
The centre (midpoint) of the bounding box.
scalar maxDim() const
Largest length/height/width dimension.
Sums a given list of (at least two or more) fields and outputs the result into a new field,...
static constexpr direction nComponents
Number of components in bool is 1.
A class for managing temporary objects.
void clear() const noexcept
bool operator!=(const eddy &a, const eddy &b)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
Cmpt cmptProduct(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Istream & operator>>(Istream &, directionInfo &)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh > > cmptAv(const DimensionedField< Type, GeoMesh > &df)