86 return 0.5 * (max_ + min_);
130 bb.max_.
x() >= min_.x() && bb.min_.
x() <= max_.x()
131 && bb.max_.
y() >= min_.y() && bb.min_.
y() <= max_.y()
132 && bb.max_.
z() >= min_.z() && bb.min_.
z() <= max_.z()
140 const scalar radiusSqr
149 scalar d0 = min_[dir] - centre[dir];
150 scalar d1 = max_[dir] - centre[dir];
152 if ((d0 > 0) != (d1 > 0))
166 if (distSqr > radiusSqr)
180 pt.
x() >= min_.x() && pt.
x() <= max_.x()
181 && pt.
y() >= min_.y() && pt.
y() <= max_.y()
182 && pt.
z() >= min_.z() && pt.
z() <= max_.z()
190 return contains(bb.
min()) && contains(bb.
max());
198 pt.
x() > min_.x() && pt.
x() < max_.x()
199 && pt.
y() > min_.y() && pt.
y() < max_.y()
200 && pt.
z() > min_.z() && pt.
z() < max_.z()
209 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)
A list of keyword definitions, which are a keyword followed by any number of values (e....
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)
const dimensionSet dimLength
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 &, pistonPointEdgeData &)
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)