@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) • 436 B
TypeScript
import type { ArrayVector3D } from "./types.js";
/**
* Rotates a 3D vector around the z-axis.
* @param {ArrayVector3D} xyz - Vector as `[x, y, z]`
* @param {number} phi - Angle of rotation in radians
* @param {ArrayVector3D} axis - Rotation axis point (default: `[0, 0, 0]`)
* @returns {ArrayVector3D} The rotated vector
*/
export declare const rotateZ3D: (xyz: ArrayVector3D, phi: number, axis?: ArrayVector3D) => ArrayVector3D;