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

Function interpolate

stackgl_modules/index.js:16848–16858  ·  view source on GitHub ↗
(simplex, weights)

Source from the content-addressed store, hash-verified

16846}
16847
16848function interpolate(simplex, weights) {
16849 var result = [0,0,0]
16850 for(var i=0; i<simplex.length; ++i) {
16851 var p = simplex[i]
16852 var w = weights[i]
16853 for(var j=0; j<3; ++j) {
16854 result[j] += w * p[j]
16855 }
16856 }
16857 return result
16858}
16859
16860function closestPointToPickLocation(simplex, pixelCoord, model, view, projection, resolution) {
16861 if(simplex.length === 1) {

Callers 9

interpX0X1FromParentFunction · 0.85
arcTweenFunction · 0.85

Calls 6

determinantFunction · 0.85
lerpFunction · 0.85
slerpFunction · 0.85
interp1dFunction · 0.85
interp2dFunction · 0.85
interp3dFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…