@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
16 lines • 586 B
TypeScript
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
* If `mag(a')` is zero, the returned vector will have all components
* zero-valued too.
*
* @param out -
* @param a -
* @param isCentered -
*/
export declare const standardize: (out: Vec | null, a: ReadonlyVec, isCentered?: boolean) => Vec<number>;
//# sourceMappingURL=standardize.d.ts.map