UNPKG

@thi.ng/vectors

Version:

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

44 lines 942 B
import type { ReadonlyVec, Vec, VecOpVV, VecOpVVV } from "./api.js"; /** * Sets `out` to `[a.x, a.y, b.x, b.y]` * * @param out - * @param a - * @param b - */ export declare const setVV4: VecOpVV; /** * Sets `out` to `[a.x, a.y, b.x, b.y, c.x, c.y]` * * @param out - * @param a - * @param b - * @param c - */ export declare const setVV6: VecOpVVV; /** * Sets `out` to: * `[a.x, a.y, a.z, b.x, b.y, b.z, c.x, c.y, c.z]` * * @param out - * @param a - * @param b - * @param c - */ export declare const setVV9: VecOpVVV; /** * Sets `out` to concatenation of `a`, `b`, `c`, `d`: * * @example * ```ts * [a.x, a.y, a.z, a.w, b.x, b.y, b.z, b.w, * c.x, c.y, c.z, c.w, d.x, d.y, d.z, d.w] * ``` * * @param out - * @param a - * @param b - * @param c - */ export declare const setVV16: (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, d: ReadonlyVec) => Vec<number>; //# sourceMappingURL=setvv.d.ts.map