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

Function lerpDomain

src/core/createRenderCoordinator.ts:631–637  ·  view source on GitHub ↗
(
  from: { readonly min: number; readonly max: number },
  to: { readonly min: number; readonly max: number },
  t01: number
)

Source from the content-addressed store, hash-verified

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 },
633 to: { readonly min: number; readonly max: number },
634 t01: number
635): { readonly min: number; readonly max: number } => {
636 return normalizeDomain(lerp(from.min, to.min, t01), lerp(from.max, to.max, t01));
637};
638
639const computePlotScissorDevicePx = (
640 gridArea: GridArea

Callers 2

renderFunction · 0.85

Calls 2

normalizeDomainFunction · 0.70
lerpFunction · 0.70

Tested by

no test coverage detected