#include <NuKDTree.h>
Public Member Functions | |
| NuKDPt () | |
| Leaves fCoord uninitialized. | |
| NuKDPt (float c0,...) | |
| float & | operator[] (unsigned int d) |
| float | operator[] (unsigned int d) const |
Protected Attributes | |
| float | fCoord [D] |
Must be initialized with floats/doubles, due to lack of typechecking
Definition at line 21 of file NuKDTree.h.
|
|||||||||
|
Leaves fCoord uninitialized.
Definition at line 25 of file NuKDTree.h. 00025 {}
|
|
||||||||||||||||
|
Definition at line 26 of file NuKDTree.h. 00027 {
00028 fCoord[0] = c0; // Need to do the first one by hand
00029 if(D > 1){
00030 va_list ap;
00031 va_start(ap, c0); // because va_start needs to see a required argument
00032 for(unsigned int d = 1; d < D; ++d){
00033 fCoord[d] = va_arg(ap, double);
00034 }
00035 va_end(ap);
00036 }
00037 }
|
|
||||||||||
|
Definition at line 39 of file NuKDTree.h. 00039 {return fCoord[d];}
|
|
||||||||||
|
Definition at line 38 of file NuKDTree.h. 00038 {return fCoord[d];}
|
|
|||||
|
Definition at line 42 of file NuKDTree.h. |
1.3.9.1