38 #ifndef _GRADIENT_PATH_H 39 #define _GRADIENT_PATH_H 63 bool getPath(
float* potential,
double start_x,
double start_y,
double end_x,
double end_y, std::vector<std::pair<float, float> >& path);
66 int pt = stc + (int)round(dx) + (int)(
xs_ * round(dy));
67 return std::max(0, std::min(
xs_ *
ys_ - 1, pt));
69 float gradCell(
float* potential,
int n);
void setSize(int xs, int ys)
float gradCell(float *potential, int n)
GradientPath(PotentialCalculator *p_calc)
int getNearestPoint(int stc, float dx, float dy)
bool getPath(float *potential, double start_x, double start_y, double end_x, double end_y, std::vector< std::pair< float, float > > &path)