Layout.module
README.md
Layout
The plan of a lanternStair shrine as pure data: the stair's centre line for each shape (straight,
switchback, winding, terraced), its height profile with landings, the top terrace, the waterfall,
plunge pool and stream, the ground height function (L.height(x, z)), and the named landmarks.
Everything is in the shrine's local frame (stair foot at the origin, climbing toward +X), built from a
seed with its own random stream and noise, so every machine computes the same place.
local Layout = require("lanternStair.Layout")
local L = Layout.build({ shape = "terraced", rise = 80, run = 190, width = 3.2, seed = 7 })
print(L.height(20, 5), L.at(L.stepsFrom + 30).y, L.landmarks.torii)