@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 { ArrayVector3D } from "./types.js";
/**
* Performs linear interpolation between two vectors.
* @param {ArrayVector3D} xyz1 - First vector as `[x, y, z]`
* @param {ArrayVector3D} xyz2 - Second vector as `[x, y, z]`
* @param {number} t - Interpolation parameter
* @returns {ArrayVector3D} The interpolated vector
*/
export declare const lerp3D: (xyz1: ArrayVector3D, xyz2: ArrayVector3D, t: number) => ArrayVector3D;