containsAabb2 method

bool containsAabb2(
  1. Aabb2 other
)

Return if this contains other.

Implementation

bool containsAabb2(Aabb2 other) {
  final otherMax = other._max;
  final otherMin = other._min;

  return (_min.x < otherMin.x) &&
      (_min.y < otherMin.y) &&
      (_max.y > otherMax.y) &&
      (_max.x > otherMax.x);
}