UNPKG

@thi.ng/matrices

Version:

Matrix & quaternion operations for 2D/3D geometry processing

12 lines 476 B
import type { ReadonlyVec } from "@thi.ng/vectors"; /** * Returns quaternion describing the rotation from direction vector * `from` -> `to`. If `normalize` is true (default), first normalizes * the vectors (not modifying original). * * @param from - * @param to - * @param normalize - */ export declare const alignmentQuat: (from: ReadonlyVec, to: ReadonlyVec, normalize?: boolean) => import("@thi.ng/vectors").Vec<number>; //# sourceMappingURL=alignment-quat.d.ts.map