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

Function lerp

packages/particle-editor/src/panels/ParticleEditorPanel.tsx:118–120  ·  view source on GitHub ↗

线性插值 | Linear interpolation

(a: number, b: number, t: number)

Source from the content-addressed store, hash-verified

116
117/** 线性插值 | Linear interpolation */
118function lerp(a: number, b: number, t: number): number {
119 return a + (b - a) * t;
120}
121
122/** 限制值范围 | Clamp value to range */
123function clamp(value: number, min: number, max: number): number {

Callers 3

evaluateScaleKeysFunction · 0.70
evaluateColorGradientFunction · 0.70
updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected