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