UNPKG

@thi.ng/vectors

Version:

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

38 lines 867 B
import type { VecOpVN } from "./api.js"; /** * Limits nD vector `v` to max length `n` and writes result to `out` (or to itself if * `out` is null). * * @param out - * @param v - * @param n - */ export declare const limit: VecOpVN; /** * Limits 2D vector `v` to max length `n` and writes result to `out` (or to itself if * `out` is null). * * @param out - * @param v - * @param n - */ export declare const limit2: VecOpVN; /** * Limits 3D vector `v` to max length `n` and writes result to `out` (or to itself if * `out` is null). * * @param out - * @param v - * @param n - */ export declare const limit3: VecOpVN; /** * Limits 4D vector `v` to max length `n` and writes result to `out` (or to itself if * `out` is null). * * @param out - * @param v - * @param n - */ export declare const limit4: VecOpVN; //# sourceMappingURL=limit.d.ts.map