cheshirekow
v0.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
30
#include <
mpblocks/dubins/kd_tree.h
>
31
#include <
mpblocks/kd_tree.hpp
>
32
33
34
namespace
mpblocks {
35
namespace
dubins {
36
namespace
kd_tree {
37
38
39
template
<
class
Scalar >
40
Traits<Scalar>::HyperRect::HyperRect
()
41
{
42
minExt
.fill(0);
43
maxExt
.fill(0);
44
}
45
46
47
48
template
<
class
Scalar >
49
Scalar
Traits<Scalar>::HyperRect::measure
()
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
67
#include <
mpblocks/dubins/kd_tree/Distance.hpp
>
68
#include <
mpblocks/dubins/kd_tree/KNearest.hpp
>
69
#include <
mpblocks/dubins/kd_tree/Nearest.hpp
>
70
71
#endif // KD_TREE_HPP_
mpblocks::dubins::curves_eigen::hyper::HyperRect< Format >::minExt
Vector3d minExt
Definition:
hyper_rect.h:47
mpblocks::dubins::curves_eigen::hyper::HyperRect< Format >::maxExt
Vector3d maxExt
Definition:
hyper_rect.h:48
KNearest.hpp
kd_tree.hpp
kd_tree.h
mpblocks::dubins::kd_tree::Traits::HyperRect::measure
Format_t measure()
return the measure of the hypercube
Definition:
kd_tree.hpp:49
mpblocks::cuda::polynomial::param_key::s
const ParamKey s
Definition:
Construct.h:38
Distance.hpp
Nearest.hpp
mpblocks::dubins::kd_tree::Traits::HyperRect::HyperRect
HyperRect()
Definition:
kd_tree.hpp:40
include
mpblocks
dubins
kd_tree.hpp
Generated on Sun Mar 22 2015 22:47:44 for cheshirekow by
1.8.6