Allocates an unsampled grid of count × count samples, cell metres apart, from (minX, minZ).
ReadonlycellGrid spacing, metres.
ReadonlycountSamples per side.
ReadonlyheightsHeights, row-major (z rows of x samples).
ReadonlyminWest edge (min x) of the grid.
ReadonlyminNorth edge (min z) of the grid.
ReadonlywaterWater surface per sample, NaN where dry.
True if (x, z) lies inside the sampled area.
Height gradient (dh/dx, dh/dz) by central differences over one cell.
Bilinear terrain height (clamped to the grid).
Slope (rise / run).
Highest water surface among the four surrounding samples, or NaN if all are dry.
True where the ground is under water (more than half of the surrounding samples are wet).
StaticaroundA square grid centred on (cx, cz) reaching radius metres out, cell metres apart (unsampled).
StaticframeReads ground height and water from a world frame (frame.sample).
StaticfromBuilds and fills a grid from a world frame.
The ground under a settlement, sampled once on a regular grid so the whole generator (roads, lots, terrain flattening) reads cheap bilinear lookups instead of the full world noise. Pure data: build it from a world frame with Site.fromFrame, or from any SiteFn (tests do).