getDistance

getDistance

> 函数列表

计算两个格子 cell1 和 cell2 之间的直线距离。

如需获取以格数计算的距离,请参阅 getCellDistance;如需获取两个格子之间绕开各种障碍物的路径长度,请参阅 getPathLength。

参数
返回值