UNPKG

@thi.ng/distance

Version:

N-dimensional distance metrics & K-nearest neighborhoods for point queries

16 lines (15 loc) 336 B
import { distHaversineLatLon, distHaversineLonLat } from "@thi.ng/vectors/dist-haversine"; import { Untransformed } from "./untransformed.js"; const HAVERSINE_LATLON = new Untransformed( distHaversineLatLon ); const HAVERSINE_LONLAT = new Untransformed( distHaversineLonLat ); export { HAVERSINE_LATLON, HAVERSINE_LONLAT };