UNPKG

@rickosborne/hexgrid

Version:

Rick Osborne's collection of hexagonal grid-related code.

11 lines 521 B
import type { BareQRSPoint } from "./qrs.js"; /** * Calculate the Manhattan distance between two hex points. */ export declare const hexDistance: (left: BareQRSPoint, right: BareQRSPoint) => number; /** * Euclidean distance between two hex points. * @see {@link https://doi.org/10.1117/1.JEI.22.1.010502 | Storage and addressing scheme for practical hexagonal image processing} */ export declare const hexEuclidDistance: (left: BareQRSPoint, right: BareQRSPoint) => number; //# sourceMappingURL=hex-distance.d.ts.map