Functions | Variables

walk.cpp File Reference

#include "common/wave_ex.h"
#include "kdtree/kdtree.h"
#include "perf/perf.h"
#include <math.h>
#include <iostream>
Include dependency graph for walk.cpp:

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 smart_ptr< kdtree::NodepopulateTree (IN int nCount, IN int subdivide)
static void walkNearToFar (IN const kdtree::Node *node, IN const point3d_t &start, IN const point3d_t &end, IN const point3d_t &n) throw ()
int main (IN int argc, IN const char *argv[])

Variables

static const float s_max = 5000.0

Function Documentation

static float getRandom ( IN float  q  )  [static]

Definition at line 37 of file walk.cpp.

static void getRandomRect ( IN const rect3d_t bounds,
IN float  size,
OUT rect3d_t r 
) [static]

Definition at line 50 of file walk.cpp.

static kdtree::eAction countCallback ( IN void *  context,
IN kdtree::Entry e,
IN const rect3d_t r 
) [static]

Definition at line 71 of file walk.cpp.

static kdtree::eAction findCallback ( IN void *  context,
IN kdtree::Entry e,
IN const rect3d_t r 
) [static]

Definition at line 109 of file walk.cpp.

static kdtree::eAction removeCallback ( IN void *  context,
IN kdtree::Entry e,
IN const rect3d_t r 
) [static]

Definition at line 128 of file walk.cpp.

static smart_ptr<kdtree::Node> populateTree ( IN int  nCount,
IN int  subdivide 
) [static]

Definition at line 148 of file walk.cpp.

static void walkNearToFar ( IN const kdtree::Node node,
IN const point3d_t start,
IN const point3d_t end,
IN const point3d_t n 
) throw () [static]

Definition at line 234 of file walk.cpp.

int main ( IN int  argc,
IN const char *  argv[] 
)

Definition at line 298 of file walk.cpp.


Variable Documentation

const float s_max = 5000.0 [static]

Definition at line 20 of file walk.cpp.