Hugintrunk
0.1
|
#include <KDTree.h>
Public Member Functions | |
HyperRectangle () | |
HyperRectangle (int iDim) | |
HyperRectangle (HyperRectangle &iOther) | |
bool | split (HyperRectangle &oLeft, HyperRectangle &oRight, int iSplitDim, TYPE iSplitVal) |
double | calcSqDistance (const KE &iTarget) |
bool | hasHyperSphereIntersect (const KE &iTarget, double iSqDistance) |
void | display () |
bool | isTargetIn (const KE &iTarget) |
Public Attributes | |
int | _dim |
std::vector< TYPE > | _leftTop |
std::vector< TYPE > | _rightBottom |
KDTreeSpace::HyperRectangle< KE, TYPE >::HyperRectangle | ( | ) |
Definition at line 372 of file KDTreeImpl.h.
|
explicit |
Definition at line 381 of file KDTreeImpl.h.
KDTreeSpace::HyperRectangle< KE, TYPE >::HyperRectangle | ( | HyperRectangle< KE, TYPE > & | iOther | ) |
Definition at line 391 of file KDTreeImpl.h.
double KDTreeSpace::HyperRectangle< KE, TYPE >::calcSqDistance | ( | const KE & | iTarget | ) |
Definition at line 428 of file KDTreeImpl.h.
Referenced by KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF().
void KDTreeSpace::HyperRectangle< KE, TYPE >::display | ( | ) |
Definition at line 473 of file KDTreeImpl.h.
References celeste::max().
bool KDTreeSpace::HyperRectangle< KE, TYPE >::hasHyperSphereIntersect | ( | const KE & | iTarget, |
double | iSqDistance | ||
) |
Definition at line 459 of file KDTreeImpl.h.
Referenced by KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF().
bool KDTreeSpace::HyperRectangle< KE, TYPE >::isTargetIn | ( | const KE & | iTarget | ) |
Definition at line 487 of file KDTreeImpl.h.
bool KDTreeSpace::HyperRectangle< KE, TYPE >::split | ( | HyperRectangle< KE, TYPE > & | oLeft, |
HyperRectangle< KE, TYPE > & | oRight, | ||
int | iSplitDim, | ||
TYPE | iSplitVal | ||
) |
Definition at line 404 of file KDTreeImpl.h.
References KDTreeSpace::HyperRectangle< KE, TYPE >::_leftTop, and KDTreeSpace::HyperRectangle< KE, TYPE >::_rightBottom.
Referenced by KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF().
int KDTreeSpace::HyperRectangle< KE, TYPE >::_dim |
std::vector<TYPE> KDTreeSpace::HyperRectangle< KE, TYPE >::_leftTop |
Definition at line 78 of file KDTree.h.
Referenced by KDTreeSpace::HyperRectangle< KE, TYPE >::split().
std::vector<TYPE> KDTreeSpace::HyperRectangle< KE, TYPE >::_rightBottom |
Definition at line 78 of file KDTree.h.
Referenced by KDTreeSpace::HyperRectangle< KE, TYPE >::split().