You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there are 2 cases where a box will be considered empty, and excluded from intersection tests:
an empty array []
an array where any dimension's min value is > max value. An example: assuming a 2d array, the format is [minX, minY, maxX, maxY] this array: [ 4, 2, 0, 2 ] will be considered empty because minX (4) > maxX (0)
So it seems boxEmpty() is doing all of the validity checking for a given box.
looking at
boxEmpty(d, box)
function here https://github.com/mikolalysenko/box-intersect/blob/master/index.js#L9I'm wondering what the format is for declaring a box empty, so that it's not included in intersection tests.
Is it simply passing an empty array
[]
?Or do we 0 out the box dimensions as in
[0, 0, 0, 0]
?The text was updated successfully, but these errors were encountered: