contains method
Computes whether another bounding box is fully contained in this one.
Implementation
bool contains(Bounds bounds) {
for (var i = 0; i < length; i++) {
if (bounds.min[i] < min[i] || max[i] < bounds.max[i]) {
return false;
}
}
return true;
}