#include "common/wave_ex.h"
#include "kdtree/kdtree.h"
#include "perf/perf.h"
#include <iostream>
Go to the source code of this file.
Functions | |
static float | getRandom (IN float q) |
static void | getRandomRect (IN const rect3d_t &bounds, IN float size, OUT rect3d_t &r) |
static kdtree::eAction | countCallback (IN void *context, IN kdtree::Entry *e, IN const rect3d_t &r) |
static kdtree::eAction | findCallback (IN void *context, IN kdtree::Entry *e, IN const rect3d_t &r) |
static kdtree::eAction | removeCallback (IN void *context, IN kdtree::Entry *e, IN const rect3d_t &r) |
static void | doTest1 (IN int nCount, IN int subdivide) |
static void | verifyFound (IN kdtree::Node *root, IN const rect3d_t &r, IN void *magic, IN kdtree::eAction expect, IN const char *msg) |
static void | doTest2 (IN int nCount, IN int subdivide) |
int | main (IN int argc, IN const char *argv[]) |
Variables | |
static const float | s_max = 5000.0 |
static float getRandom | ( | IN float | q | ) | [static] |
Definition at line 36 of file lib/kdtree/test/test.cpp.
Definition at line 49 of file lib/kdtree/test/test.cpp.
static kdtree::eAction countCallback | ( | IN void * | context, | |
IN kdtree::Entry * | e, | |||
IN const rect3d_t & | r | |||
) | [static] |
Definition at line 70 of file lib/kdtree/test/test.cpp.
static kdtree::eAction findCallback | ( | IN void * | context, | |
IN kdtree::Entry * | e, | |||
IN const rect3d_t & | r | |||
) | [static] |
Definition at line 108 of file lib/kdtree/test/test.cpp.
static kdtree::eAction removeCallback | ( | IN void * | context, | |
IN kdtree::Entry * | e, | |||
IN const rect3d_t & | r | |||
) | [static] |
Definition at line 127 of file lib/kdtree/test/test.cpp.
static void doTest1 | ( | IN int | nCount, | |
IN int | subdivide | |||
) | [static] |
Definition at line 147 of file lib/kdtree/test/test.cpp.
static void verifyFound | ( | IN kdtree::Node * | root, | |
IN const rect3d_t & | r, | |||
IN void * | magic, | |||
IN kdtree::eAction | expect, | |||
IN const char * | msg | |||
) | [static] |
Definition at line 230 of file lib/kdtree/test/test.cpp.
static void doTest2 | ( | IN int | nCount, | |
IN int | subdivide | |||
) | [static] |
Definition at line 264 of file lib/kdtree/test/test.cpp.
int main | ( | IN int | argc, | |
IN const char * | argv[] | |||
) |
Definition at line 355 of file lib/kdtree/test/test.cpp.
const float s_max = 5000.0 [static] |
Definition at line 19 of file lib/kdtree/test/test.cpp.