containsBox method

bool containsBox(
  1. Box2 box
)

Implementation

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