contains method

bool contains(
  1. AABB aabb
)

Does this aabb contain the provided AABB.

Implementation

bool contains(AABB aabb) {
  return lowerBound.x <= aabb.lowerBound.x &&
      lowerBound.y <= aabb.lowerBound.y &&
      aabb.upperBound.x <= upperBound.x &&
      aabb.upperBound.y <= upperBound.y;
}