containsBox method

bool containsBox(
  1. Box3 box
)

Implementation

bool containsBox(Box3 box) {
  return min.x <= box.min.x &&
      box.max.x <= max.x &&
      min.y <= box.min.y &&
      box.max.y <= max.y &&
      min.z <= box.min.z &&
      box.max.z <= max.z;
}