37 #ifndef Foam_pointHit_H 38 #define Foam_pointHit_H 50 template<
class Po
intType>
class PointHit;
63 template<
class Po
intType>
140 return eligibleMiss_;
161 <<
"Requested a hit point, but it was not hit" 174 <<
"Requested a miss point, but it was hit" 192 eligibleMiss_ =
false;
199 eligibleMiss_ = eligible;
219 eligibleMiss_ =
false;
226 template<
class AnyPo
intType>
227 bool operator<(const PointHit<AnyPointType>& rhs)
const noexcept 229 return distance_ < rhs.distance_;
238 template<
class Po
intType>
239 inline Ostream& operator<<(Ostream& os, const PointHit<PointType>& pHit)
244 << pHit.eligibleMiss();
const point_type & rawPoint() const noexcept
The point, no checks.
void setPoint(const point_type &p)
Set the point.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
PointHit()
Default construct. A zero point with a large distance, no hit, no eligible misses.
PointType point_type
The point type.
bool hit() const noexcept
Is there a hit.
void setHit() noexcept
Set the hit status on.
void setDistance(const scalar d) noexcept
Set the distance.
Describes the interaction of a object and a (templated) point. It carries the info of a successful hi...
errorManip< error > abort(error &err)
void setMiss(const bool eligible) noexcept
Set the hit status off and set the eligible miss status.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const point_type & hitPoint() const
Return the hit point. Fatal if not hit.
scalar distance() const noexcept
Return distance to hit.
const point_type & point() const noexcept
Return the point, no checks.
bool eligibleMiss() const noexcept
Is this an eligible miss.
const point_type & missPoint() const
Return the miss point. Fatal if hit.
PointHit(const point_type &p)
Construct from point with a large distance, no hit, no eligible misses.
PointHit< point > pointHit
A PointHit with a 3D point.
static constexpr const zero Zero
Global zero (0)