astar.h
来自「A*算法在寻找路径中效率比较高」· C头文件 代码 · 共 14 行
H
14 行
#pragma once
struct STWay
{
int angle;
int step;
STWay(int a, int s) : angle(a), step(s) { ; }
};
// way desc
// 3 2 0 1 ..bits
// dy+1 dx+1
extern bool astar8way(const byte *map, int x1, int y1, int x2, int y2, std::list<STWay> &ways, float radius);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?