heuristic_callback.m
来自「Algorithme de Djikstra」· M 代码 · 共 17 行
M
17 行
function d = heuristic_callback(i, heuristic)% heuristic_callback - a default callback for A*%% d = heuristic_callback(i, heuristic);%% 'heuristic' should contains a field % 'target' a target vertex number and% 'vertex' a matrix with position of all the vertices.%% Copyright (c) 2004 Gabriel Peyrvertex = heuristic.vertex;target = heuristic.target;d = norm( vertex(i,:)-vertex(target,:) , 'fro' );
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?