queso-0.53.0
Public Member Functions | Public Attributes | List of all members
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); }
DLL_API ANNpoint annAllocPt(int dim, ANNcoord c=0)
Definition: ANN.cpp:110
ANNpoint lo
Definition: ANNx.h:93
ANNpoint hi
Definition: ANNx.h:94
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 lo
Definition: ANNx.h:93
DLL_API ANNpoint annCopyPt(int dim, ANNpoint source)
Definition: ANN.cpp:140
ANNpoint hi
Definition: ANNx.h:94
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 lo
Definition: ANNx.h:93
DLL_API ANNpoint annCopyPt(int dim, ANNpoint source)
Definition: ANN.cpp:140
ANNpoint hi
Definition: ANNx.h:94
ANNorthRect::~ANNorthRect ( )
inline

Definition at line 113 of file ANNx.h.

References annDeallocPt(), hi, and lo.

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

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 lo
Definition: ANNx.h:93
int dim
Definition: ann2fig.cpp:81
Definition: ANN.h:132
ANNpoint hi
Definition: ANNx.h:94
Definition: ANN.h:132

Member Data Documentation

ANNpoint ANNorthRect::hi
ANNpoint ANNorthRect::lo

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

Generated on Thu Jun 11 2015 13:52:33 for queso-0.53.0 by  doxygen 1.8.5