UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

16 lines (15 loc) 635 B
import type { DoubleOf, QuadrupleOf } from '../common/types.js'; import { type ArxPolygon, ArxPolygonFlags } from './Polygon.js'; import type { ArxVertex } from './Vertex.js'; export declare function isQuad({ flags }: { flags: ArxPolygonFlags; }): boolean; export declare function isTiled({ flags }: { flags: ArxPolygonFlags; }): boolean; export declare function addLightIndex(polygons: ArxPolygon[]): ArxPolygon[]; export declare function getCellCoords([a, b, c]: QuadrupleOf<ArxVertex>): DoubleOf<number>; /** * inclusive: min <= n <= max */ export declare function isBetween(min: number, max: number, n: number): boolean;