Public Types | Public Member Functions | List of all members
PointHit< PointType > Class Template Reference

Describes the interaction of a face and a point. It carries the info of a successful hit and (if successful) the interaction point. More...

Public Types

typedef PointType point_type
 

Public Member Functions

 PointHit ()
 
 PointHit (const point_type &p)
 
 PointHit (const bool hit, const point_type &p, const scalar dist, const bool eligibleMiss=false)
 
bool hit () const noexcept
 
bool eligibleMiss () const noexcept
 
const point_typepoint () const noexcept
 
scalar distance () const noexcept
 
const point_typehitPoint () const
 
const point_typemissPoint () const
 
const point_typerawPoint () const noexcept
 
void setHit () noexcept
 
void setMiss (const bool eligible) noexcept
 
void setPoint (const point_type &p)
 
void setDistance (const scalar d) noexcept
 
template<class AnyPointType >
bool operator< (const PointHit< AnyPointType > &rhs) const noexcept
 

Detailed Description

template<class PointType>
class Foam::PointHit< PointType >

Describes the interaction of a face and a point. It carries the info of a successful hit and (if successful) the interaction point.

Definition at line 47 of file PointHit.H.

Member Typedef Documentation

◆ point_type

typedef PointType point_type

Definition at line 69 of file PointHit.H.

Constructor & Destructor Documentation

◆ PointHit() [1/3]

PointHit ( )
inline

Definition at line 76 of file PointHit.H.

◆ PointHit() [2/3]

PointHit ( const point_type p)
inlineexplicit

Definition at line 86 of file PointHit.H.

◆ PointHit() [3/3]

PointHit ( const bool  hit,
const point_type p,
const scalar  dist,
const bool  eligibleMiss = false 
)
inline

Definition at line 96 of file PointHit.H.

Member Function Documentation

◆ hit()

bool hit ( ) const
inlinenoexcept

◆ eligibleMiss()

bool eligibleMiss ( ) const
inlinenoexcept

◆ point()

const point_type& point ( ) const
inlinenoexcept

Definition at line 127 of file PointHit.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ distance()

scalar distance ( ) const
inlinenoexcept

◆ hitPoint()

const point_type& hitPoint ( ) const
inline

◆ missPoint()

const point_type& missPoint ( ) const
inline

◆ rawPoint()

const point_type& rawPoint ( ) const
inlinenoexcept

◆ setHit()

void setHit ( )
inlinenoexcept

Definition at line 175 of file PointHit.H.

Referenced by tetrahedron::containmentSphere(), face::intersection(), face::nearestPointClassify(), face::ray(), and triangle::ray().

Here is the caller graph for this function:

◆ setMiss()

void setMiss ( const bool  eligible)
inlinenoexcept

Definition at line 182 of file PointHit.H.

Referenced by tetrahedron::containmentSphere(), face::nearestPointClassify(), face::ray(), and triangle::ray().

Here is the caller graph for this function:

◆ setPoint()

void setPoint ( const point_type p)
inline

Definition at line 189 of file PointHit.H.

References p.

Referenced by tetrahedron::containmentSphere(), face::intersection(), face::nearestPointClassify(), face::ray(), triangle::ray(), and faceCollapser::setRefinement().

Here is the caller graph for this function:

◆ setDistance()

void setDistance ( const scalar  d)
inlinenoexcept

◆ operator<()

bool operator< ( const PointHit< AnyPointType > &  rhs) const
inlinenoexcept

Definition at line 205 of file PointHit.H.


The documentation for this class was generated from the following file: