@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
19 lines • 600 B
TypeScript
import type { DistanceFn, MultiVecOpRoVV } from "./api.js";
/**
* Computes the squared Eucledian distance between given 2D vectors.
*/
export declare const distSq2: DistanceFn;
/**
* Computes the squared Eucledian distance between given 3D vectors.
*/
export declare const distSq3: DistanceFn;
/**
* Computes the squared Eucledian distance between given 4D vectors.
*/
export declare const distSq4: DistanceFn;
/**
* Computes the squared Eucledian distance between given nD vectors.
* Multi-method.
*/
export declare const distSq: MultiVecOpRoVV<number>;
//# sourceMappingURL=distsq.d.ts.map