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) 290 B
import type { ArrayVector4D } from "./types.js"; /** * Calculates the angle between a 4D vector and the positive w-axis. * @param {ArrayVector4D} xyzw - Vector as `[x, y, z, w]` * @returns {number} The angle in radians */ export declare const angleW4D: (xyzw: ArrayVector4D) => number;