UNPKG

@thi.ng/matrices

Version:

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

14 lines 485 B
import type { ReadonlyVec } from "@thi.ng/vectors"; import type { Mat } from "./api.js"; /** * Constructs a 4x4 camera matrix for given `eye` position, look-at * `target` (both in world space) and normalized `up` vector. Creates * new matrix if `out` is `null`. * * @param out - * @param eye - * @param target - * @param up - */ export declare const lookAt: (out: Mat | null, eye: ReadonlyVec, target: ReadonlyVec, up: ReadonlyVec) => Mat; //# sourceMappingURL=lookat.d.ts.map