(simplex, weights)
| 16846 | } |
| 16847 | |
| 16848 | function 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 | |
| 16860 | function closestPointToPickLocation(simplex, pixelCoord, model, view, projection, resolution) { |
| 16861 | if(simplex.length === 1) { |
no test coverage detected
searching dependent graphs…