intersects method
Returns true when this and other share at least one point
(closed-interval intersection).
Implementation
bool intersects(BBox other) {
assert(other.dims == dims);
for (var i = 0; i < dims; i++) {
if (bounds[i + dims] < other.bounds[i]) return false;
if (other.bounds[i + dims] < bounds[i]) return false;
}
return true;
}