hex-world
    Preparing search index...

    Interface HexCoord

    A position in cube (axial) coordinates. The third axis s = -q - r is derived and not stored. All hex math functions operate on this type.

    Convert to/from offset grid coordinates with offsetToHex / hexToOffset.

    interface HexCoord {
        q: number;
        r: number;
    }
    Index

    Properties

    q r

    Properties

    q: number
    r: number