drainageCell

function drainageCell
universe/src/drainage.ts:1244
drainageCell(graph: DrainageGraph, direction: Vec3) → number

The lattice cell a direction falls in, as a node index.

A decision taken in a float, and the module header says why that is allowed here: the two cells a boundary sample could name both list every segment within reach of the boundary, and every profile is zero at the reach, so the value the two walks return is the same value.

graphDrainageGraph
Undocumented
directionVec3
Undocumented
Returnsnumber