@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) • 434 B
TypeScript
import type { ArrayVector4D } from "./types.js";
/**
* Reflects a 4D vector across a normal vector.
* The normal vector should be normalized (unit length).
* @param {ArrayVector4D} xyzw - Vector as `[x, y, z, w]`
* @param {ArrayVector4D} normal - Normal vector (must be normalized)
* @returns {ArrayVector4D} The reflected vector
*/
export declare const reflect4D: (xyzw: ArrayVector4D, normal: ArrayVector4D) => ArrayVector4D;