Go to the documentation of this file.
53 template<
class Po
intType>
122 bool hit() const noexcept
130 return eligibleMiss_;
151 <<
"Requested a hit point, but it was not hit"
164 <<
"Requested a miss point, but it was hit"
185 eligibleMiss_ =
false;
189 void setMiss(
const bool eligible) noexcept
192 eligibleMiss_ = eligible;
211 template<
class AnyPo
intType>
214 return distance_ < rhs.distance_;
221 template<
class Po
intType>
void setHit() noexcept
Set the hit status on.
void setMiss(const bool eligible) noexcept
Set the hit status off and set the eligible miss status.
void setDistance(const scalar d) noexcept
Set the distance.
Describes the interaction of a face and a point. It carries the info of a successful hit and (if succ...
static constexpr const zero Zero
Global zero (0)
scalar distance() const noexcept
Return distance to hit.
const point_type & hitPoint() const
Return the hit point. Fatal if not hit.
const point_type & point() const noexcept
Return the point, no checks.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool eligibleMiss() const noexcept
Is this an eligible miss.
const point_type & missPoint() const
Return the miss point. Fatal if hit.
const point_type & rawPoint() const noexcept
The point, no checks.
PointHit(const point_type &p)
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
void setPoint(const point_type &p)
Set the point.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
PointType point_type
The point type.
bool operator<(const PointHit< AnyPointType > &rhs) const noexcept
Distance comparision operator, for sorting.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool hit() const noexcept
Is there a hit.