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