MCPcopy
hub / github.com/microsoft/SandDance / lerp

Method lerp

docs/app/js/sanddance-app.js:69303–69310  ·  view source on GitHub ↗
(a, b, t)

Source from the content-addressed store, hash-verified

69301 return this.check();
69302 }
69303 lerp(a, b, t) {
69304 if (t === undefined) return this.lerp(this, a, b);
69305 for(let i = 0; i < this.ELEMENTS; ++i){
69306 const ai = a[i];
69307 this[i] = ai + t * (b[i] - ai);
69308 }
69309 return this.check();
69310 }
69311 min(vector) {
69312 for(let i = 0; i < this.ELEMENTS; ++i)this[i] = Math.min(vector[i], this[i]);
69313 return this.check();

Callers 4

lerpMethod · 0.45
pixelsToWorldFunction · 0.45
unprojectOnFarPlaneFunction · 0.45
sanddance-app.jsFile · 0.45

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected