containsRectangle 方法

bool containsRectangle(
  1. Rectangle<num> another
)
继承

检查 this 完全包含 another

实现

bool containsRectangle(Rectangle<num> another) {
  return left <= another.left &&
      left + width >= another.left + another.width &&
      top <= another.top &&
      top + height >= another.top + another.height;
}