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) 287 B
import type { ArrayVector3D } from "./types.js"; /** * Create an immutable 3D vector. * @param {ArrayVector3D} xyz - Vector as `[x, y, z]` * @returns {Readonly<ArrayVector3D>} The immutable vector */ export declare const immutable3D: (xyz: ArrayVector3D) => Readonly<ArrayVector3D>;