]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/blobdiff - incl/nn.h
Use std::array for indexing structure
[hubacji1/iamcar.git] / incl / nn.h
index 719f793cb38aef5a475ccd618bf91d75804913a8..4870667c884abeb7b65618ac678b74ff7d7116ce 100644 (file)
--- a/incl/nn.h
+++ b/incl/nn.h
@@ -18,6 +18,8 @@ along with I am car. If not, see <http://www.gnu.org/licenses/>.
 #ifndef NEARESTNEIGHBOUR_H
 #define NEARESTNEIGHBOUR_H
 
+#include <array>
+#include "aux.h"
 #include "rrtbase.h"
 #include "rrtnode.h"
 
@@ -44,6 +46,15 @@ RRTNode *nn3(
                 RRTNode *node,
                 float (*cost)(RRTNode *, RRTNode *));
 RRTNode *nn4(
+                std::array<std::vector<RRTNode *>, IYSIZE> &nodes,
+                RRTNode *node,
+                float (*cost)(RRTNode *, RRTNode *));
+RRTNode *nn5(
+                std::vector<RRTNode *> (&nodes)[IYSIZE],
+                RRTNode *node,
+                float (*cost)(RRTNode *, RRTNode *),
+                char tree);
+RRTNode *nn6(
                 std::vector<RRTNode *> (&nodes)[IYSIZE],
                 RRTNode *node,
                 float (*cost)(RRTNode *, RRTNode *));