#include "rrtbase.h"
#include "rrtnode.h"
-struct mcnn { // min-cost nearest neighbour
- float mc;
- RRTNode *nn;
-};
-#pragma omp declare reduction \
- (minn: struct mcnn: omp_out = \
- omp_in.mc < omp_out.mc ? omp_in : omp_out) \
- initializer \
- (omp_priv(omp_orig))
-
RRTNode *nn1(
std::vector<RRTNode *> &nodes,
RRTNode *node,
#define GLVERTEX(n) ((n)->x() * glplwscale), ((n)->y() * glplhscale)
+// Nearest neighbor
+struct mcnn { // min-cost nearest neighbour
+ float mc;
+ RRTNode *nn;
+};
+#pragma omp declare reduction \
+ (minn: struct mcnn: omp_out = \
+ omp_in.mc < omp_out.mc ? omp_in : omp_out) \
+ initializer \
+ (omp_priv(omp_orig))
+
class Cell {
private:
std::vector<RRTNode *> nodes_;