UNPKG

@thi.ng/vectors

Version:

Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts

24 lines 785 B
import type { DistanceFn, MultiVecOpRoVV } from "./api.js"; /** * Computes the Manhattan (or Taxicab) distance between given 2D vectors. * * @remarks * Reference: https://en.wikipedia.org/wiki/Taxicab_geometry */ export declare const distManhattan2: DistanceFn; /** * Computes the Manhattan (or Taxicab) distance between given 3D vectors. * * @remarks * Reference: https://en.wikipedia.org/wiki/Taxicab_geometry */ export declare const distManhattan3: DistanceFn; /** * Computes the Manhattan (or Taxicab) distance between given 4D vectors. * * @remarks * Reference: https://en.wikipedia.org/wiki/Taxicab_geometry */ export declare const distManhattan4: DistanceFn; export declare const distManhattan: MultiVecOpRoVV<number>; //# sourceMappingURL=dist-manhattan.d.ts.map