@alpaca-software/40kdc-data
    Preparing search index...

    Type Alias Footprint

    Footprint:
        | { type: "rectangle"; width: number; height: number }
        | { type: "right-triangle"; width: number; height: number }
        | { type: "polygon"; points: [Vec2, Vec2, Vec2, ...Vec2[]] }

    A terrain piece's 2D footprint in local inches (y-down): an axis-aligned rectangle with its min corner at the local origin, a right triangle with the right angle at the local origin and legs along +x/+y, or an explicit polygon (>= 3 points). The placement resolver re-centers the footprint on its polygon area centroid, so the local-origin convention does not affect where the piece lands — only its shape matters.

    This interface was referenced by 0KdcBundledSchemas's JSON-Schema via the definition "footprint".

    Type Declaration

    • { type: "rectangle"; width: number; height: number }
    • { type: "right-triangle"; width: number; height: number }
    • { type: "polygon"; points: [Vec2, Vec2, Vec2, ...Vec2[]] }