#include <G4KDTree.hh>
Definition at line 133 of file G4KDTree.hh.
◆ HyperRect() [1/2]
G4KDTree::HyperRect::HyperRect |
( |
size_t |
dim | ) |
|
|
inline |
◆ ~HyperRect()
G4KDTree::HyperRect::~HyperRect |
( |
| ) |
|
|
inline |
◆ HyperRect() [2/2]
G4KDTree::HyperRect::HyperRect |
( |
const HyperRect & |
rect | ) |
|
|
inline |
Definition at line 159 of file G4KDTree.hh.
160 {
164
165 for (
size_t i = 0; i <
fDim; i++)
166 {
167 fMin[i] = rect.fMin[i];
168 fMax[i] = rect.fMax[i];
169 }
170 }
References fDim, fMax, and fMin.
◆ CompareDistSqr()
template<typename Position >
bool G4KDTree::HyperRect::CompareDistSqr |
( |
const Position & |
pos, |
|
|
const double * |
bestmatch |
|
) |
| |
|
inline |
Definition at line 189 of file G4KDTree.hh.
190 {
191 double result = 0;
192
193 for (
size_t i = 0; i <
fDim; i++)
194 {
196 {
198 }
200 {
202 }
203
204 if (result >= *bestmatch) return false;
205 }
206
207 return true;
208 }
static const G4double pos
References fDim, fMax, fMin, pos, and sqr().
◆ Extend()
template<typename Position >
void G4KDTree::HyperRect::Extend |
( |
const Position & |
pos | ) |
|
|
inline |
◆ GetDim()
size_t G4KDTree::HyperRect::GetDim |
( |
| ) |
|
|
inline |
◆ GetMax()
double * G4KDTree::HyperRect::GetMax |
( |
| ) |
|
|
inline |
◆ GetMin()
double * G4KDTree::HyperRect::GetMin |
( |
| ) |
|
|
inline |
◆ operator=()
Definition at line 229 of file G4KDTree.hh.
230 {
231 if (this == &rhs) return *this;
232 return *this;
233 }
◆ SetMinMax()
template<typename Position >
void G4KDTree::HyperRect::SetMinMax |
( |
const Position & |
min, |
|
|
const Position & |
max |
|
) |
| |
|
inline |
◆ fDim
size_t G4KDTree::HyperRect::fDim |
|
protected |
◆ fMax
double * G4KDTree::HyperRect::fMax |
|
protected |
◆ fMin
double* G4KDTree::HyperRect::fMin |
|
protected |
The documentation for this class was generated from the following file:
- source/processes/electromagnetic/dna/management/include/G4KDTree.hh