distanceToCell
distanceToCell(
cell,x,z):number
Defined in: residency/cells.ts:112
Ground-plane distance from a point to a cell’s box; zero inside it.
To the BOX rather than to the cell’s centre, because a centre answers the same for a source standing on a diagonal corner as for one a whole cell away, and that is where holes open in a world laid out on a grid.
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”number