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.

10 lines (9 loc) 382 B
import type { ArrayVector3D } from "./types.js"; /** * Creates a 3D vector from spherical coordinates. * @param {number} theta - First angle * @param {number} phi - Second angle * @param {number} [m] - Optional magnitude (default: `1`) * @returns {ArrayVector3D} Vector */ export declare const fromSphericalCoords3D: (theta: number, phi: number, m?: number) => ArrayVector3D;