@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) • 316 B
TypeScript
import type { ArrayVector3D } from "./types.js";
/**
* Gets the angle between a 3D vector and the positive x-axis in radians.
* @param {ArrayVector3D} xyz - Vector as `[x, y, z]`
* @returns {number} Angle in radians, always in the range [0, 2π)
*/
export declare const angleX3D: (xyz: ArrayVector3D) => number;