mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Sync upstream Gemini-CLI v0.8.2 (#838)
This commit is contained in:
15
packages/cli/src/utils/math.ts
Normal file
15
packages/cli/src/utils/math.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @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;
|
||||
Reference in New Issue
Block a user