Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
x = b
y = c
z = a
}
} else if(c < a) {
x = c
y = a
z = b
}
if(x < 0) {
return -1
}
key[0] = x
key[1] = y
key[2] = z
return bsearch.eq(this.cells, key, compareCell)
}
})()
x = b
y = c
z = a
}
} else if(c < a) {
x = c
y = a
z = b
}
if(x < 0) {
return -1
}
key[0] = x
key[1] = y
key[2] = z
return bsearch.eq(this.cells, key, compareCell)
}
})()
return function(i, j) {
e[0] = Math.min(i,j)
e[1] = Math.max(i,j)
return bsearch.eq(this.edges, e, compareLex) >= 0
}
})()
module.exports.indexOf = function (word) {
assert(typeof word === 'string', 'word must be string')
return binarySearch.eq(wordlist, word)
}
function glueVertex(tree, e, v) {
if(e[0] < tree.x) {
glueVertex(tree.left, e, v)
} else if(e[0] > tree.x) {
glueVertex(tree.right, e, v)
} else {
var idx = bsearch.eq(tree.verts, e, comparePair)
tree.edges[idx].push(v)
}
}
function virtualKeyCode(key) {
return bsearch.eq(keyNames, key)
}
function mergeHulls(hulls, points, event) {
//Swap pointers for merge search
var tmp = event.a
event.a = event.b
event.b = tmp
var mergeIdx = bsearch.eq(hulls, event, findSplit)
var upper = hulls[mergeIdx]
var lower = hulls[mergeIdx-1]
lower.upperIds = upper.upperIds
hulls.splice(mergeIdx, 1)
}
function virtualKeyCode(key) {
return bsearch.eq(keyNames, key)
}