@thi.ng/geom-closest-point
Version:
2D / 3D closest point / proximity helpers
14 lines • 542 B
TypeScript
import type { FnU2 } from "@thi.ng/api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
/**
* Returns closest point to `p` in given point array, optionally using custom
* distance function `dist` (default:
* [`distSq`](https://docs.thi.ng/umbrella/vectors/functions/distSq.html)).
*
* @param p -
* @param pts -
* @param out -
* @param dist -
*/
export declare const closestPointArray: (p: ReadonlyVec, pts: Vec[], out?: Vec, dist?: FnU2<ReadonlyVec, number>) => Vec<number> | undefined;
//# sourceMappingURL=points.d.ts.map