treeDataPoint::findNearestOp Class Reference

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

Definition at line 76 of file treeDataPoint.H.

Constructor & Destructor Documentation

◆ findNearestOp()

Definition at line 77 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 137 of file treeDataPoint.C.

References Foam::magSqr(), and treeDataPoint::shapePoint().

Here is the call graph for this function:

◆ operator()() [2/2]

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

Definition at line 165 of file treeDataPoint.C.

References PointHit< PointType >::distance(), Foam::ln(), Foam::magSqr(), Foam::max(), VectorSpace< Form, Cmpt, Ncmpts >::max, Foam::min(), VectorSpace< Form, Cmpt, Ncmpts >::min, PointHit< PointType >::rawPoint(), treeDataPoint::shapePoint(), Foam::sqr(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

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