UNPKG

@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) 427 B
import type { ArrayVector2D } from "./types.js"; /** * Performs linear interpolation between two 2D vectors. * @param {ArrayVector2D} xy1 - First vector as `[x, y]` * @param {ArrayVector2D} xy2 - Second vector as `[x, y]` * @param {number} t - Interpolation parameter * @returns {ArrayVector2D} The interpolated vector */ export declare const lerp2D: (xy1: ArrayVector2D, xy2: ArrayVector2D, t: number) => ArrayVector2D;