MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / lerp

Function lerp

src/math/index.ts:131–133  ·  view source on GitHub ↗
(a: number, b: number, t: number)

Source from the content-addressed store, hash-verified

129// Scalar utilities
130
131export function lerp(a: number, b: number, t: number): number {
132 return a + (b - a) * t;
133}
134
135export function clamp(value: number, min: number, max: number): number {
136 if (value < min) return min;

Callers 6

updateKartPhysicsFunction · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
specgloss_to_metalroughFunction · 0.50
sample_transmittance_lutFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected