cheshirekow  v0.1.0
kd_tree.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of mpblocks.
5  *
6  * mpblocks is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * mpblocks is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with mpblocks. If not, see <http://www.gnu.org/licenses/>.
18  */
27 #ifndef MPBLOCKS_DUBINS_KD_TREE_HPP_
28 #define MPBLOCKS_DUBINS_KD_TREE_HPP_
29 
31 #include <mpblocks/kd_tree.hpp>
32 
33 
34 namespace mpblocks {
35 namespace dubins {
36 namespace kd_tree {
37 
38 
39 template < class Scalar >
41 {
42  minExt.fill(0);
43  maxExt.fill(0);
44 }
45 
46 
47 
48 template < class Scalar >
50 {
51  Scalar s = 1.0;
52  for(unsigned int i=0; i < minExt.rows(); i++)
53  s *= maxExt[i] - minExt[i];
54 
55  return s;
56 }
57 
58 
59 
60 
61 } // namespace kd_tree
62 } // namespace dubins
63 } // namespace mpblocks
64 
65 
66 
70 
71 #endif // KD_TREE_HPP_
Format_t measure()
return the measure of the hypercube
Definition: kd_tree.hpp:49