hex-world
    Preparing search index...

    Function terraceFactors

    • Interpolation factors for one terrace step, 0…TERRACE_STEPS: h across the ground plane and v up. They differ, and that is the whole effect — v only advances on every other step, which is what turns a ramp into a flight of treads and risers.

      Exported alongside TERRACE_STEPS so a builder meeting the open end of a terraced bridge can trace the same staircase instead of cutting a straight line across it. The profile is symmetric, so it does not matter which of the two cells you walk from.

      Parameters

      • step: number

      Returns { h: number; v: number }