@rickosborne/hexgrid
Version:
Rick Osborne's collection of hexagonal grid-related code.
44 lines • 1.53 kB
TypeScript
export declare const AXIAL: "axial";
export declare const CUBE: "cube";
export declare const DOUBLE_H: "doubleH";
export declare const DOUBLE_W: "doubleW";
export declare const ODD_R: "oddR";
export declare const ODD_Q: "oddQ";
export declare const EVEN_R: "evenR";
export declare const EVEN_Q: "evenQ";
export type Axial = typeof AXIAL;
export type Cube = typeof CUBE;
export type DoubleHeight = typeof DOUBLE_H;
export type DoubleWidth = typeof DOUBLE_W;
export type OddR = typeof ODD_R;
export type OddQ = typeof ODD_Q;
export type EvenR = typeof EVEN_R;
export type EvenQ = typeof EVEN_Q;
export interface HexSystems {
axial: Axial;
cube: Cube;
doubleH: DoubleHeight;
doubleW: DoubleWidth;
evenQ: EvenQ;
evenR: EvenR;
oddQ: OddQ;
oddR: OddR;
}
export type HexSystem = keyof HexSystems;
export declare const HEX_SYSTEMS: readonly HexSystem[];
export declare const SQRT_3: number;
export declare const SQRT_3_2: number;
export declare const SQRT_3_3: number;
export declare const TWO_PI: number;
export declare const CW_60 = 60;
export declare const CW_120 = 120;
export declare const CW_180 = 180;
export declare const CW_240 = 240;
export declare const CW_300 = 300;
export declare const CCW_60 = 300;
export declare const CCW_120 = 240;
export declare const CCW_180 = 180;
export declare const CCW_240 = 120;
export declare const CCW_300 = 60;
export type HexRotation = 0 | typeof CW_60 | typeof CW_120 | typeof CW_180 | typeof CW_240 | typeof CW_300;
//# sourceMappingURL=hex-system.d.ts.map