threejs-worldgen
    Preparing search index...

    Interface PlannedLot

    A lot with its district.

    interface PlannedLot {
        area: number;
        block: number;
        center: Vec2;
        district: District;
        front: number;
        id: number;
        polygon: Vec2[];
        street: boolean[];
    }

    Hierarchy (View Summary)

    • Lot
      • PlannedLot
    Index
    area: number

    Area, m².

    block: number

    Block it belongs to (−1 for roadside lots outside any block).

    center: Vec2

    Area centroid.

    district: District

    District at the lot's centroid.

    front: number

    Index of the longest street-facing edge, or −1 for an interior lot (no street access).

    id: number

    Index in the lot list.

    polygon: Vec2[]

    Outline, counter-clockwise.

    street: boolean[]

    Per edge (edge i = polygon[i]→polygon[i+1]): true if it faces a street.