跳到主要内容

grid_pos_manhattan_distance

计算两个2D坐标的曼哈顿距离

声明

int grid_pos_manhattan_distance(map a, map b)

参数

参数名描述
a坐标1
b坐标2

返回值

曼哈顿距离

使用方式

返回文档