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.

9 lines (8 loc) 331 B
import type { ArrayVector2D } from "./types.js"; /** * Creates an `ArrayVector2D` from polar coordinates. * @param {number} phi - Angle in radians * @param {number} [m] - Optional magnitude (default: `1`) * @returns {ArrayVector2D} Vector */ export declare const fromPolarCoords2D: (phi: number, m?: number) => ArrayVector2D;