ANN.cpp File Reference

#include <ANN/ANNx.h>
#include <ANN/ANNperf.h>
#include <cstdlib>

Go to the source code of this file.

Functions

ANNpoint annAllocPt (int dim, ANNcoord c)
ANNpointArray annAllocPts (int n, int dim)
void annAssignRect (int dim, ANNorthRect &dest, const ANNorthRect &source)
ANNpoint annCopyPt (int dim, ANNpoint source)
void annDeallocPt (ANNpoint &p)
void annDeallocPts (ANNpointArray &pa)
ANNdist annDist (int dim, ANNpoint p, ANNpoint q)
void annError (char *msg, ANNerr level)
void annMaxPtsVisit (int maxPts)
void annPrintPt (ANNpoint pt, int dim, std::ostream &out)

Variables

int ANNmaxPtsVisited = 0
int ANNptsVisited

Function Documentation

ANNpoint annAllocPt ( int  dim,
ANNcoord  c 
)

Definition at line 108 of file ANN.cpp.

References draftTools::p.

Referenced by best_fit::ANN(), ANNorthRect::ANNorthRect(), annReadDump(), and main().

ANNpointArray annAllocPts ( int  n,
int  dim 
)
void annAssignRect ( int  dim,
ANNorthRect dest,
const ANNorthRect source 
)

Definition at line 146 of file ANN.cpp.

References ANNorthRect::hi, and ANNorthRect::lo.

Referenced by annBnds2Box(), and tryCentroidShrink().

ANNpoint annCopyPt ( int  dim,
ANNpoint  source 
)

Definition at line 138 of file ANN.cpp.

References draftTools::p.

Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree::ANNkd_tree(), and ANNorthRect::ANNorthRect().

void annDeallocPt ( ANNpoint p  ) 

Definition at line 125 of file ANN.cpp.

Referenced by ANNkd_tree::~ANNkd_tree(), and ANNorthRect::~ANNorthRect().

void annDeallocPts ( ANNpointArray pa  ) 
ANNdist annDist ( int  dim,
ANNpoint  p,
ANNpoint  q 
)
void annError ( char *  msg,
ANNerr  level 
)
void annMaxPtsVisit ( int  maxPts  ) 

Definition at line 195 of file ANN.cpp.

References ANNmaxPtsVisited.

Referenced by main().

void annPrintPt ( ANNpoint  pt,
int  dim,
std::ostream &  out 
)

Definition at line 68 of file ANN.cpp.

Referenced by ANNkd_tree::Dump(), and ANNkd_tree::Print().


Variable Documentation


Generated on Wed Nov 23 19:01:12 2011 for FreeCAD by  doxygen 1.6.1