test if two n-dimensional bounding boxes overlap
var overlap =var a = 38 -15-11 100110var b = 15 -12-5 80140var c = -46 -100 7090console // trueconsole // falseconsole // true
var overlap =
Return whether the bounding box
a intersects the bounding box
Bounding boxes are arrays of 2-element
[min,max] array pairs, one for each
opts.cmp(a, b)- provide your own custom comparison function or array of comparison functions
Comparison functions should return
1 for less than, equal to,
and greater than cases, respectively.
opts.cmp is an array, each item in the array should be a comparison
function for the respective dimension.
npm install bounding-box-overlap-test