MCPcopy Index your code
hub / github.com/plotly/plotly.js / lerp

Function lerp

stackgl_modules/index.js:25280–25288  ·  view source on GitHub ↗

* Performs a linear interpolation between two vec3's * * @param {vec3} out the receiving vector * @param {vec3} a the first operand * @param {vec3} b the second operand * @param {Number} t interpolation amount between the two inputs * @returns {vec3} out

(out, a, b, t)

Source from the content-addressed store, hash-verified

25278 * @returns {vec3} out
25279 */
25280function lerp(out, a, b, t) {
25281 var ax = a[0],
25282 ay = a[1],
25283 az = a[2]
25284 out[0] = ax + t * (b[0] - ax)
25285 out[1] = ay + t * (b[1] - ay)
25286 out[2] = az + t * (b[2] - az)
25287 return out
25288}
25289
25290/***/ }),
25291

Callers 2

createColormapFunction · 0.85
interpolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…