UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

10 lines 426 B
/** * Performs linear interpolation between two numbers. * @param {number} start - The start value. * @param {number} end - The end value. * @param {number} amount - The interpolation factor (0 to 1). * @returns {number} The interpolated value. * @throws {TypeError} If any argument is not a number. */ export default function lerp(start: number, end: number, amount: number): number; //# sourceMappingURL=lerp.d.ts.map