queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
ANNorthRect Class Reference

#include <ANNx.h>

Public Member Functions

 ANNorthRect (int dd, ANNcoord l=0, ANNcoord h=0)
 
 ANNorthRect (int dd, const ANNorthRect &r)
 
 ANNorthRect (int dd, ANNpoint l, ANNpoint h)
 
 ~ANNorthRect ()
 
ANNbool inside (int dim, ANNpoint p)
 

Public Attributes

ANNpoint lo
 
ANNpoint hi
 

Detailed Description

Definition at line 91 of file ANNx.h.

Constructor & Destructor Documentation

ANNorthRect::ANNorthRect ( int  dd,
ANNcoord  l = 0,
ANNcoord  h = 0 
)
inline

Definition at line 96 of file ANNx.h.

References annAllocPt(), hi, and lo.

100  { lo = annAllocPt(dd, l); hi = annAllocPt(dd, h); }
ANNpoint hi
Definition: ANNx.h:94
ANNpoint lo
Definition: ANNx.h:93
DLL_API ANNpoint annAllocPt(int dim, ANNcoord c=0)
Definition: ANN.cpp:110
ANNorthRect::ANNorthRect ( int  dd,
const ANNorthRect r 
)
inline

Definition at line 102 of file ANNx.h.

References annCopyPt(), hi, and lo.

105  { lo = annCopyPt(dd, r.lo); hi = annCopyPt(dd, r.hi); }
ANNpoint hi
Definition: ANNx.h:94
ANNpoint lo
Definition: ANNx.h:93
DLL_API ANNpoint annCopyPt(int dim, ANNpoint source)
Definition: ANN.cpp:140
ANNorthRect::ANNorthRect ( int  dd,
ANNpoint  l,
ANNpoint  h 
)
inline

Definition at line 107 of file ANNx.h.

References annCopyPt(), hi, and lo.

111  { lo = annCopyPt(dd, l); hi = annCopyPt(dd, h); }
ANNpoint hi
Definition: ANNx.h:94
ANNpoint lo
Definition: ANNx.h:93
DLL_API ANNpoint annCopyPt(int dim, ANNpoint source)
Definition: ANN.cpp:140
ANNorthRect::~ANNorthRect ( )
inline

Definition at line 113 of file ANNx.h.

References annDeallocPt(), hi, and lo.

ANNpoint hi
Definition: ANNx.h:94
DLL_API void annDeallocPt(ANNpoint &p)
Definition: ANN.cpp:127
ANNpoint lo
Definition: ANNx.h:93

Member Function Documentation

ANNbool ANNorthRect::inside ( int  dim,
ANNpoint  p 
)

Definition at line 157 of file ANN.cpp.

References ANNfalse, ANNtrue, and dim.

Referenced by annBoxSplit().

158 {
159  for (int i = 0; i < dim; i++) {
160  if (p[i] < lo[i] || p[i] > hi[i]) return ANNfalse;
161  }
162  return ANNtrue;
163 }
ANNpoint hi
Definition: ANNx.h:94
ANNpoint lo
Definition: ANNx.h:93
int dim
Definition: ann_test.cpp:472
Definition: ANN.h:132
Definition: ANN.h:132

Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Tue Jun 5 2018 19:48:57 for queso-0.57.1 by  doxygen 1.8.5