@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
24 lines • 711 B
TypeScript
import type { ReadonlyVec, Vec } from "./api.js";
/**
* Produces a vector which is perpendicular/normal to the plane spanned
* by given 3 input vectors. If `normalize` is true (default), the
* result vector will be normalized.
*
* @example
* ```ts tangle:../export/ortho-normal3.ts
* import { orthoNormal3 } from "@thi.ng/vectors";
*
* console.log(
* orthoNormal3([], [0, 0, 0], [1, 0, 0], [0, 1, 0])
* );
* // [0, 0, 1]
* ```
*
* @param out -
* @param a -
* @param b -
* @param c -
* @param normalize -
*/
export declare const orthoNormal3: (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, doNormalize?: boolean) => Vec<number>;
//# sourceMappingURL=ortho-normal.d.ts.map