craterFieldWithin

function craterFieldWithin
universe/src/craters.ts:144
craterFieldWithin(sketch: TerrainSketch, grammar: SurfaceGrammar, direction: Vec3, extra: number) → number

The same field, with every level's neighborhood widened by extra cells.

Exported for the one test that can hold the containment claim, because the claim is about what the walk does not visit and the only way to see that is to visit it. extra of zero is what ships; a test compares it against two and asserts the difference is nothing, over enough directions that a crater straddling a cell boundary has to turn up in some of them.

sketchTerrainSketch
Undocumented
grammarSurfaceGrammar
Undocumented
directionVec3
Undocumented
extranumber
Undocumented
Returnsnumber