Skip to content

five-on-it / packages/world/src/pavements / pavementDistances

Function: pavementDistances() ​

pavementDistances(p, goal): Float32Array

Defined in: packages/world/src/pavements.ts:449

Every node's walking distance to goal along the links (m; Infinity from another part), by Dijkstra; the last FIELDS_KEPT goals asked for are kept.

Parameters ​

p ​

Pavements

goal ​

number

Returns ​

Float32Array