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) 328 B
import type { ArrayVector3D } from "./types.js"; /** * Creates a random unit 3D vector. * @param {() => number} random - A function that returns a random number between 0 and 1 (default: `Math.random`) * @returns {ArrayVector3D} Random unit vector */ export declare const random3D: (random?: () => number) => ArrayVector3D;