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

Function bruteForceBlue

stackgl_modules/index.js:6541–6556  ·  view source on GitHub ↗
(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)

Source from the content-addressed store, hash-verified

6539 }
6540 }
6541 function bruteForceBlue(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {
6542 var es = 2 * d
6543 for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {
6544 var y0 = bb[ax + bp], yi = bi[j]
6545 Q: for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {
6546 var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]
6547 if (y0 < x0 || x1 < y0) continue
6548 for (var k = ax + 1; k < d; ++k) {
6549 var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]
6550 if (r1 < b0 || b1 < r0) continue Q
6551 }
6552 var rv = vv(xi, yi)
6553 if (rv !== void 0) return rv
6554 }
6555 }
6556 }
6557 function bruteForcePartial(d, ax, vv, fp, rs, re, rb, ri, bs, be, bb, bi) {
6558 if (re - rs > be - bs) {
6559 if (fp) {

Callers 1

bruteForcePartialFunction · 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…