MCPcopy Create free account
hub / github.com/dailydotdev/apps / lerp

Function lerp

packages/shared/src/components/shell/constants.ts:98–99  ·  view source on GitHub ↗
(from: number, to: number, p: number)

Source from the content-addressed store, hash-verified

96};
97
98export const lerp = (from: number, to: number, p: number): number =>
99 from + (to - from) * p;
100
101export const clamp = (value: number): number => Math.min(1, Math.max(0, value));

Callers 4

ShellClusterFunction · 0.90
ShellFieldFunction · 0.90
usePostCapsulePositionFunction · 0.90
PostCapsuleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected