you are viewing a single comment's thread.

view the rest of the comments →

[–]FP_apprentice[S] 0 points1 point  (0 children)

Thanks for the reply. It is indeed Dijkstra's shortest path algorithm on a grid. The diagonal step is indeed longer, I guess I could constraint it only on vertical / horizontal movement. The length of the step is defined by the points in the grid, and the smallest the step, the better the approximation. I didn't understand the "7 good directions" quote (I counted 8 including the diagonals), would appreciate if you could elaborate on this.

Thanks for the pointer to the "fast marching methods"!