UNPKG

@fimbul-works/vec

Version:

A comprehensive TypeScript vector math library providing 2D, 3D, and 4D vector operations with a focus on performance and type safety.

8 lines (7 loc) 292 B
import type { ArrayVector4D } from "./types.js"; /** * Create an immutable 4D vector. * @param {ArrayVector4D} xyzw - Vector as `[x, y, z, w]` * @returns {Readonly<ArrayVector4D>} The immutable vector */ export declare const immutable4D: (xyzw: ArrayVector4D) => Readonly<ArrayVector4D>;