Download packages/cli/src/utils/math.ts from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/utils/math.ts
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/cli/src/utils/math.ts
-
curl -L -o math.ts https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/utils/math.ts
373 Bytes
| /** | |
| * @license | |
| * Copyright 2025 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| /** | |
| * Linearly interpolates between two values. | |
| * | |
| * @param start The start value. | |
| * @param end The end value. | |
| * @param t The interpolation amount (typically between 0 and 1). | |
| */ | |
| export const lerp = (start: number, end: number, t: number): number => | |
| start + (end - start) * t; | |