treeDataPoint::findNearestOp Class Reference

Forward to treeDataPoint findNearest operations. More...

Public Member Functions

 findNearestOp (const indexedOctree< treeDataPoint > &tree)
 
void operator() (const labelUList &indices, const point &sample, scalar &nearestDistSqr, label &minIndex, point &nearestPoint) const
 
void operator() (const labelUList &indices, const linePointRef &ln, treeBoundBox &tightest, label &minIndex, point &linePoint, point &nearestPoint) const
 

Detailed Description

Forward to treeDataPoint findNearest operations.

Definition at line 83 of file treeDataPoint.H.

Constructor & Destructor Documentation

◆ findNearestOp()

Definition at line 131 of file treeDataPoint.C.

Member Function Documentation

◆ operator()() [1/2]

void operator() ( const labelUList indices,
const point sample,
scalar &  nearestDistSqr,
label &  minIndex,
point nearestPoint 
) const

Definition at line 173 of file treeDataPoint.C.

◆ operator()() [2/2]

void operator() ( const labelUList indices,
const linePointRef ln,
treeBoundBox tightest,
label &  minIndex,
point linePoint,
point nearestPoint 
) const

Definition at line 194 of file treeDataPoint.C.

References treeDataPoint::centre(), PointHit< PointType >::distance(), Foam::ln(), PointHit< PointType >::point(), and Foam::sqr().

Here is the call graph for this function:

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