UNPKG

@thi.ng/vectors

Version:

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

19 lines 692 B
import type { ReadonlyVec, Vec } from "./api.js"; /** * Returns standardized version of `a`, i.e. `a' / sd(a')`, where `a'` is the * {@link center}'ed version of `a`. If `isCentered` is false (default), the * vector will first be centered in order to compute the result. * * @remarks * See {@link sd} for explanation of the `corrected` param. * * If `mag(a')` is zero, the returned vector will have all components * zero-valued too. * * @param out - * @param a - * @param isCentered - * @param corrected - */ export declare const standardize: (out: Vec | null, a: ReadonlyVec, isCentered?: boolean, corrected?: boolean) => Vec<number>; //# sourceMappingURL=standardize.d.ts.map