containsPartialBounds method

bool containsPartialBounds(
  1. Bounds<T> b
)

Checks if a part of the other Bounds is contained in this Bounds.

Implementation

bool containsPartialBounds(Bounds<T> b) {
  return (b.min.x <= max.x) &&
      (b.max.x >= min.x) &&
      (b.min.y <= max.y) &&
      (b.max.y >= min.y);
}