cheshirekow  v0.1.0
HyperRect.h
Go to the documentation of this file.
1 
9 #ifndef MPBLOCKS_KD_TREE_R2_S1_HYPERRECT_H_
10 #define MPBLOCKS_KD_TREE_R2_S1_HYPERRECT_H_
11 
12 
13 namespace mpblocks {
14 namespace kd_tree {
15 namespace r2_s1 {
16 
18 
22 template <class Traits>
23 struct HyperRect
24 {
25  typedef typename Traits::Format_t Format_t;
26  typedef Eigen::Matrix<Format_t,Traits::NDim,1> Vector_t;
27  typedef Vector_t Point_t;
28 
31 
33  HyperRect();
34 
36  Format_t measure();
37 };
38 
39 
40 } // namespace r2_s1
41 } // namespace kd_tree
42 } // namespace mpblocks
43 
44 #endif
HyperRect()
initializes bounds to 0,0,...
Definition: HyperRect.hpp:20
Eigen::Matrix< Format_t, Traits::NDim, 1 > Vector_t
Definition: HyperRect.h:26
an NDim dimensional hyperrectangle, represented as a min and max extent
Definition: HyperRect.h:23
Point_t maxExt
maximum extent of hyper-rectangle
Definition: HyperRect.h:30
Point_t minExt
minimum extent of hyper-rectangle
Definition: HyperRect.h:29
Format_t measure()
return the measure of the hypercube
Definition: HyperRect.hpp:33
double Format_t
number format (i.e. double, float)
Definition: Traits.h:38