contains method

bool contains(
  1. AABB aabb
)

Does this aabb contain the provided AABB.

Implementation

bool contains(final AABB aabb) {
  // djm: faster putting all of them together, as if one is false we leave the logic
  // early
  return lowerBound.x <= aabb.lowerBound.x &&
      lowerBound.y <= aabb.lowerBound.y &&
      aabb.upperBound.x <= upperBound.x &&
      aabb.upperBound.y <= upperBound.y;
}