Classes | Macros | Typedefs | Enumerations | Functions | Variables
ANN.h File Reference
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cstring>
#include <climits>
#include <cfloat>
Include dependency graph for ANN.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ANNbd_tree
 
class  ANNbruteForce
 
class  ANNkd_tree
 
class  ANNpointSet
 

Macros

#define ANN_DIFF(x, y)   ((y) - (x))
 
#define ANN_POW(v)   ((v)*(v))
 
#define ANN_ROOT(x)   sqrt(x)
 
#define ANN_SUM(x, y)   ((x) + (y))
 
#define ANNcopyright   "David M. Mount and Sunil Arya"
 
#define ANNlatestRev   "Jan 27, 2010"
 
#define ANNversion   "1.1.2"
 
#define ANNversionCmt   ""
 
#define DLL_API
 

Typedefs

typedef double ANNcoord
 
typedef double ANNdist
 
typedef ANNdistANNdistArray
 
typedef int ANNidx
 
typedef ANNidxANNidxArray
 
typedef ANNkd_nodeANNkd_ptr
 
typedef ANNcoordANNpoint
 
typedef ANNpointANNpointArray
 

Enumerations

enum  ANNbool { ANNfalse = 0, ANNtrue = 1 }
 
enum  ANNshrinkRule { ANN_BD_NONE = 0, ANN_BD_SIMPLE = 1, ANN_BD_CENTROID = 2, ANN_BD_SUGGEST = 3 }
 
enum  ANNsplitRule {
  ANN_KD_STD = 0, ANN_KD_MIDPT = 1, ANN_KD_FAIR = 2, ANN_KD_SL_MIDPT = 3,
  ANN_KD_SL_FAIR = 4, ANN_KD_SUGGEST = 5
}
 

Functions

DLL_API ANNpoint annAllocPt (int dim, ANNcoord c=0)
 
DLL_API ANNpointArray annAllocPts (int n, int dim)
 
DLL_API void annClose ()
 
DLL_API ANNpoint annCopyPt (int dim, ANNpoint source)
 
DLL_API void annDeallocPt (ANNpoint &p)
 
DLL_API void annDeallocPts (ANNpointArray &pa)
 
DLL_API ANNdist annDist (int dim, ANNpoint p, ANNpoint q)
 
DLL_API void annMaxPtsVisit (int maxPts)
 

Variables

const ANNbool ANN_ALLOW_SELF_MATCH = ANNtrue
 
const double ANN_DBL_MAX = DBL_MAX
 
const ANNdist ANN_DIST_INF = ANN_DBL_MAX
 
const int ANN_N_SHRINK_RULES = 4
 
const int ANN_N_SPLIT_RULES = 6
 
const ANNidx ANN_NULL_IDX = -1
 
const int ANNcoordPrec = 15
 

Macro Definition Documentation

#define ANN_DIFF (   x,
  y 
)    ((y) - (x))

Definition at line 339 of file ANN.h.

#define ANN_POW (   v)    ((v)*(v))

Definition at line 336 of file ANN.h.

#define ANN_ROOT (   x)    sqrt(x)

Definition at line 337 of file ANN.h.

#define ANN_SUM (   x,
  y 
)    ((x) + (y))

Definition at line 338 of file ANN.h.

#define ANNcopyright   "David M. Mount and Sunil Arya"

Definition at line 123 of file ANN.h.

#define ANNlatestRev   "Jan 27, 2010"

Definition at line 124 of file ANN.h.

#define ANNversion   "1.1.2"

Definition at line 121 of file ANN.h.

#define ANNversionCmt   ""

Definition at line 122 of file ANN.h.

#define DLL_API

Definition at line 85 of file ANN.h.

Typedef Documentation

typedef double ANNcoord

Definition at line 158 of file ANN.h.

typedef double ANNdist

Definition at line 159 of file ANN.h.

Definition at line 377 of file ANN.h.

typedef int ANNidx

Definition at line 175 of file ANN.h.

typedef ANNidx* ANNidxArray

Definition at line 378 of file ANN.h.

Definition at line 702 of file ANN.h.

typedef ANNcoord* ANNpoint

Definition at line 375 of file ANN.h.

Definition at line 376 of file ANN.h.

Enumeration Type Documentation

enum ANNbool
Enumerator
ANNfalse 
ANNtrue 

Definition at line 132 of file ANN.h.

Enumerator
ANN_BD_NONE 
ANN_BD_SIMPLE 
ANN_BD_CENTROID 
ANN_BD_SUGGEST 

Definition at line 605 of file ANN.h.

Enumerator
ANN_KD_STD 
ANN_KD_MIDPT 
ANN_KD_FAIR 
ANN_KD_SL_MIDPT 
ANN_KD_SL_FAIR 
ANN_KD_SUGGEST 

Definition at line 596 of file ANN.h.

Function Documentation

DLL_API ANNpoint annAllocPt ( int  dim,
ANNcoord  c = 0 
)

Definition at line 110 of file ANN.cpp.

DLL_API ANNpointArray annAllocPts ( int  n,
int  dim 
)

Definition at line 117 of file ANN.cpp.

DLL_API void annClose ( )

Definition at line 221 of file kd_tree.cpp.

DLL_API ANNpoint annCopyPt ( int  dim,
ANNpoint  source 
)

Definition at line 140 of file ANN.cpp.

DLL_API void annDeallocPt ( ANNpoint p)

Definition at line 127 of file ANN.cpp.

DLL_API void annDeallocPts ( ANNpointArray pa)

Definition at line 133 of file ANN.cpp.

DLL_API ANNdist annDist ( int  dim,
ANNpoint  p,
ANNpoint  q 
)

Definition at line 46 of file ANN.cpp.

DLL_API void annMaxPtsVisit ( int  maxPts)

Definition at line 197 of file ANN.cpp.

Variable Documentation

const ANNbool ANN_ALLOW_SELF_MATCH = ANNtrue

Definition at line 235 of file ANN.h.

const double ANN_DBL_MAX = DBL_MAX

Definition at line 118 of file ANN.h.

const ANNdist ANN_DIST_INF = ANN_DBL_MAX

Definition at line 199 of file ANN.h.

const int ANN_N_SHRINK_RULES = 4

Definition at line 610 of file ANN.h.

const int ANN_N_SPLIT_RULES = 6

Definition at line 603 of file ANN.h.

const ANNidx ANN_NULL_IDX = -1

Definition at line 176 of file ANN.h.

const int ANNcoordPrec = 15

Definition at line 222 of file ANN.h.



addwa_local_planner
Author(s): Xie Fusheng
autogenerated on Mon Jun 10 2019 15:52:59