56 for (d = 0; d <
dim; d++) {
75 for (
int j = 0; j <
dim; j++) {
77 if (j < dim-1) out <<
" ";
113 for (
int i = 0; i <
dim; i++) p[i] = c;
121 for (
int i = 0; i < n; i++) {
143 for (
int i = 0; i <
dim; i++) p[i] = source[i];
150 for (
int i = 0; i <
dim; i++) {
151 dest.
lo[i] = source.
lo[i];
152 dest.
hi[i] = source.
hi[i];
159 for (
int i = 0; i <
dim; i++) {
160 if (p[i] < lo[i] || p[i] > hi[i])
return ANNfalse;
172 cerr <<
"ANN: ERROR------->" << msg <<
"<-------------ERROR\n";
176 cerr <<
"ANN: WARNING----->" << msg <<
"<-------------WARNING\n";
void annDeallocPts(ANNpointArray &pa)
ANNpointArray annAllocPts(int n, int dim)
ANNpoint annAllocPt(int dim, ANNcoord c)
IMETHOD Vector diff(const Vector &p_w_a, const Vector &p_w_b, double dt=1)
ANNdist annDist(int dim, ANNpoint p, ANNpoint q)
void annAssignRect(int dim, ANNorthRect &dest, const ANNorthRect &source)
void annError(const char *msg, ANNerr level)
ANNpoint annCopyPt(int dim, ANNpoint source)
void annPrintPt(ANNpoint pt, int dim, std::ostream &out)
ANNbool inside(int dim, ANNpoint p)
void annMaxPtsVisit(int maxPts)
void annDeallocPt(ANNpoint &p)