MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / lerp

Function lerp

src/core/createRenderCoordinator.ts:629–629  ·  view source on GitHub ↗
(a: number, b: number, t01: number)

Source from the content-addressed store, hash-verified

627const clampInt = (v: number, lo: number, hi: number): number => Math.min(hi, Math.max(lo, v | 0));
628
629const lerp = (a: number, b: number, t01: number): number => a + (b - a) * clamp01(t01);
630
631const lerpDomain = (
632 from: { readonly min: number; readonly max: number },

Callers 3

lerpDomainFunction · 0.70

Calls 1

clamp01Function · 0.70

Tested by

no test coverage detected