UNPKG

gamekit-utils

Version:

Minimal, fast and useful utilities for randomness, array manipulation and math — built for games, UI logic and generative design.

9 lines (8 loc) 278 B
/** * Linearly interpolate between two values. * @param a The start value. * @param b The end value. * @param t The interpolation factor, clamped between 0 and 1. * @returns The interpolated value. */ export declare function lerp(a: number, b: number, t: number): number;