📄 heuristic_callback.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -