classifySurface

function classifySurface
universe/src/archetype.ts:172
classifySurface(density: number, hasAtmosphere: boolean, tidal: number) → SurfaceArchetype

The classification itself, from the three numbers it reads.

Separated from surfaceArchetype because surfaceGrammar needs the same answer and has no Body to ask — it runs where a body is generated, before there is one. Two implementations of a two-branch rule is how a zoo comes to disagree with the geology it is a fixture for, so there is one, and both call it.

densitynumber
Undocumented
hasAtmosphereboolean
Undocumented
tidalnumber
Undocumented