Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4KDTree.hh File Reference
#include <vector>
#include "G4KDTreeResult.hh"

Go to the source code of this file.

Classes

class  G4KDTree
 

Functions

void InactiveNode (G4KDNode *)
 
void Free (G4KDNode *&)
 
void * GetData (G4KDNode *)
 
const double * GetNodePosition (G4KDNode *)
 

Function Documentation

◆ Free()

void Free ( G4KDNode *&  node)

Definition at line 63 of file G4KDNode.cc.

64{
65 if(node)
66 delete node ;
67 node = 0;
68}

◆ GetData()

void * GetData ( G4KDNode node)

Definition at line 45 of file G4KDNode.cc.

46{
47 return node->GetData() ;
48}
void * GetData()
Definition: G4KDNode.hh:117

Referenced by G4KDTree::__NearestInRange().

◆ GetNodePosition()

const double * GetNodePosition ( G4KDNode node)

Definition at line 50 of file G4KDNode.cc.

51{
52 return node->GetPosition() ;
53}
const double * GetPosition()
Definition: G4KDNode.hh:127

◆ InactiveNode()

void InactiveNode ( G4KDNode node)

Definition at line 57 of file G4KDNode.cc.

58{
59 if(!node) return ;
60 node->InactiveNode() ;
61}
void InactiveNode()
Definition: G4KDNode.cc:120

Referenced by G4IT::TakeOutBox().