Skip to content

1681-engine / index / octile

Function: octile() ​

ts
function octile(dx, dy): number;

Defined in: src/nav/findPath.ts:19

Octile distance: the cost of the cheapest eight-way walk over open ground.

Parameters ​

ParameterType
dxnumber
dynumber

Returns ​

number

Released under the MIT License.