wang-tiles - v2.1.2
    Preparing search index...

    Interface Constraint<D>

    A whitelist of what tiles are allowed to abut another tile.

    interface Constraint<D extends number[]> {
        edge: Edge;
        coords: D;
    }

    Type Parameters

    • D extends number[]
    Index
    edge: Edge

    The tile allowed to be placed.

    coords: D

    The axis of the allowed placement, if the tileset is a 3D matrix for instance: X-Axis = 0, Y-Axis = 1, Z-Axis = 2