containsAabb2 method

bool containsAabb2 (
  1. Aabb2 other
)

Return if this contains other.

Implementation

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

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