UNPKG

@thi.ng/vectors

Version:

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

11 lines 376 B
import type { ReadonlyVec, Vec } from "./api.js"; /** * Creates a mean-centered version of `a`, i.e. subtracts {@link vmean} of `a` * from each component and writes result to `out` (or back into `a` iff `out` is * null). * * @param out - * @param a - */ export declare const center: (out: Vec | null, a: ReadonlyVec) => Vec<number>; //# sourceMappingURL=center.d.ts.map