Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface HexagonalGridCube2D

    2D cube coordinates in a hexagonal grid. q + r + s = 0.

    interface HexagonalGridCube2D {
        q: number;
        r: number;
        s: number;
    }
    Index

    Properties

    q r s

    Properties

    q: number

    The coordinate along the E-W (columns) or SW-NE (rows) axis. Equal to the offset column coordinate if column orientation.

    r: number

    The coordinate along the NE-SW (columns) or N-S (rows) axis. Equal to the offset row coordinate if row orientation.

    s: number

    The coordinate along the SE-NW axis.