intersects 方法
继承
如果 this
与 other
交叉,则返回 true。
实现
bool intersects(Rectangle<num> other) {
return (left <= other.left + other.width &&
other.left <= left + width &&
top <= other.top + other.height &&
other.top <= top + height);
}